[PTRun]Bring back acrylic and proper fix to title bar accent showing (#33458)

* Revert "[PTRun]Fix accent on title bar bleed into UI (#33046)"

This reverts commit 8bb5a33572.

* Revert "[PTRun]Use Mica backdrop to fix crashes with WPFUI (#32118)"

This reverts commit b9da1e6abf.

* Fix DWMAttributes in Wox Plugin Native Methods

* Fix titlebar accent showing

* Fix number on wrong enum
This commit is contained in:
Jaime Bernardo
2024-06-21 10:30:13 +01:00
committed by GitHub
parent 6043898ee5
commit 9509d7c1cc
5 changed files with 60 additions and 33 deletions

View File

@@ -66,7 +66,7 @@ namespace Wox.Plugin.Common.Win32
public static extern int DwmpActivateLivePreview([MarshalAs(UnmanagedType.Bool)] bool fActivate, IntPtr hWndExclude, IntPtr hWndInsertBefore, LivePreviewTrigger lpt, IntPtr prcFinalRect);
[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref uint attrValue, int attrSize);
[DllImport("dwmapi.dll", PreserveSig = false)]
public static extern int DwmGetWindowAttribute(IntPtr hwnd, int dwAttribute, out int pvAttribute, int cbAttribute);
@@ -493,28 +493,28 @@ namespace Wox.Plugin.Common.Win32
public enum DwmWindowAttributes
{
NCRenderingEnabled = 1,
NCRenderingPolicy,
TransitionsForceDisabled,
AllowNCPaint,
CaptionButtonBounds,
NonClientRtlLayout,
ForceIconicRepresentation,
Flip3DPolicy,
ExtendedFrameBounds,
HasIconicBitmap,
DisallowPeek,
ExcludedFromPeek,
Cloak,
Cloaked,
FreezeRepresentation,
PassiveUpdateMode,
UseHostbackdropbrush,
UseImmersiveDarkMode,
WindowCornerPreference,
BorderColor,
CaptionColor,
TextColor,
VisibleFrameBorderThickness,
NCRenderingPolicy = 2,
TransitionsForceDisabled = 3,
AllowNCPaint = 4,
CaptionButtonBounds = 5,
NonClientRtlLayout = 6,
ForceIconicRepresentation = 7,
Flip3DPolicy = 8,
ExtendedFrameBounds = 9,
HasIconicBitmap = 10,
DisallowPeek = 11,
ExcludedFromPeek = 12,
Cloak = 13,
Cloaked = 14,
FreezeRepresentation = 15,
PassiveUpdateMode = 16,
UseHostbackdropbrush = 17,
UseImmersiveDarkMode = 20,
WindowCornerPreference = 33,
BorderColor = 34,
CaptionColor = 35,
TextColor = 36,
VisibleFrameBorderThickness = 37,
Last,
}