mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[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 commit8bb5a33572. * Revert "[PTRun]Use Mica backdrop to fix crashes with WPFUI (#32118)" This reverts commitb9da1e6abf. * Fix DWMAttributes in Wox Plugin Native Methods * Fix titlebar accent showing * Fix number on wrong enum
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user