Add acrylic blur & DWM caption color support
build / build (push) Has been cancelled
build / publish (push) Has been cancelled

This commit is contained in:
ema
2026-04-08 01:12:50 +08:00
parent 94b56a885a
commit b22bb3a168
3 changed files with 124 additions and 8 deletions
+3 -3
View File
@@ -33,6 +33,7 @@ public static class Dwmapi
public enum WindowAttribute
{
UseImmersiveDarkMode = 20,
CaptionColor = 35,
SystembackdropType = 38,
MicaEffect = 1029,
}
@@ -44,9 +45,8 @@ public static class Dwmapi
Mica = 2,
Acrylic = 3, // Automatically selects the best Acrylic effect available on the system (Acrylic11 > Acrylic10)
Tabbed = 4,
Acrylic10, // Windows 10 style, supported on Windows 10 and 11
Acrylic11, // Windows 11 style, supported on Windows 11 22523+ (Insider) and 22621+ (Stable)
Acrylic10 = 5, // Windows 10 style, supported on Windows 10 and 11
Acrylic11 = 6, // Windows 11 style, supported on Windows 11 22523+ (Insider) and 22621+ (Stable)
}
[DllImport("DwmApi.dll")]