-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
94 additions
and
10 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/app/dev/platforms/desktop/DevToys.Windows/Native/AccentEdges.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace DevToys.Windows.Native; | ||
|
||
[Flags] | ||
internal enum AccentEdges | ||
{ | ||
Left = 0x20, | ||
Top = 0x40, | ||
Right = 0x80, | ||
Bottom = 0x100 | ||
} |
12 changes: 12 additions & 0 deletions
12
src/app/dev/platforms/desktop/DevToys.Windows/Native/AccentPolicy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace DevToys.Windows.Native; | ||
|
||
[StructLayout(LayoutKind.Sequential)] | ||
internal struct AccentPolicy | ||
{ | ||
public AccentState AccentState; | ||
public int AccentFlags; | ||
public uint GradientColor; | ||
public int AnimationId; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/app/dev/platforms/desktop/DevToys.Windows/Native/AccentState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace DevToys.Windows.Native; | ||
|
||
internal enum AccentState | ||
{ | ||
ACCENT_DISABLED = 0, | ||
ACCENT_ENABLE_GRADIENT = 1, | ||
ACCENT_ENABLE_TRANSPARENTGRADIENT = 2, | ||
ACCENT_ENABLE_BLURBEHIND = 3, | ||
ACCENT_ENABLE_ACRYLICBLURBEHIND = 4, | ||
ACCENT_INVALID_STATE = 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/app/dev/platforms/desktop/DevToys.Windows/Native/WindowCompositionAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace DevToys.Windows.Native; | ||
|
||
internal enum WindowCompositionAttribute | ||
{ | ||
WCA_ACCENT_POLICY = 19 | ||
} |
11 changes: 11 additions & 0 deletions
11
src/app/dev/platforms/desktop/DevToys.Windows/Native/WindowCompositionAttributeData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Runtime.InteropServices; | ||
|
||
namespace DevToys.Windows.Native; | ||
|
||
[StructLayout(LayoutKind.Sequential)] | ||
internal struct WindowCompositionAttributeData | ||
{ | ||
public WindowCompositionAttribute Attribute; | ||
public IntPtr Data; | ||
public int SizeOfData; | ||
} |