-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AcrylicBrushes and add new AcrylicBrushes (#3498)
* Add new brushes, update CommandbarFlyout and NavigationView to use new brushes * Update brushes * Update brush references * Update project file * Update navigationview resources * Hacky workaround XAML compiler bug * Add check * Add comment * Fix typo
- Loading branch information
Showing
8 changed files
with
216 additions
and
18 deletions.
There are no files selected for viewing
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
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
77 changes: 77 additions & 0 deletions
77
dev/Materials/Acrylic/AcrylicBrush_19h1_themeresources.xaml
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,77 @@ | ||
<ResourceDictionary | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Microsoft.UI.Xaml.Media"> | ||
|
||
<!-- | ||
Due to a low level compiler bug, setting nullable doubles does not work on all platforms. | ||
Because of that, TintLuminosityOpacity will be set through code behind when loading these brushes. | ||
This is being done in XAMLControlsResources.cpp . | ||
--> | ||
<ResourceDictionary.ThemeDictionaries> | ||
<ResourceDictionary x:Key="Default"> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlTransientBackgroundBrush" | ||
TintColor="#2C2C2C" | ||
TintOpacity="0.15" | ||
FallbackColor="#2C2C2C" | ||
BackgroundSource="HostBackdrop"/> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlTransientAcrylicElementBrush" | ||
TintColor="#2C2C2C" | ||
TintOpacity="0.15" | ||
FallbackColor="#2C2C2C" | ||
BackgroundSource="Backdrop"/> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlTransientBackgroundInverseBrush" | ||
TintColor="#FCFCFC" | ||
TintOpacity="0.0" | ||
FallbackColor="#FCFCFC" | ||
BackgroundSource="HostBackdrop"/> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlBaseAcrylicBrush" | ||
TintColor="#202020" | ||
TintOpacity="0.0" | ||
FallbackColor="#202020" | ||
BackgroundSource="HostBackdrop"/> | ||
<SolidColorBrush x:Key="SystemControlDefaultBrighteningBrush" Color="#FFFFFF" Opacity="0.0419"/> | ||
</ResourceDictionary> | ||
|
||
<ResourceDictionary x:Key="Light"> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlTransientBackgroundBrush" | ||
TintColor="#FCFCFC" | ||
TintOpacity="0.0" | ||
FallbackColor="#FCFCFC" | ||
BackgroundSource="HostBackdrop"/> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlTransientAcrylicElementBrush" | ||
TintColor="#FCFCFC" | ||
TintOpacity="0.0" | ||
FallbackColor="#FCFCFC" | ||
BackgroundSource="Backdrop"/> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlTransientBackgroundInverseBrush" | ||
TintColor="#2C2C2C" | ||
TintOpacity="0.15" | ||
FallbackColor="#2C2C2C" | ||
BackgroundSource="HostBackdrop"/> | ||
<local:AcrylicBrush | ||
x:Key="SystemControlBaseAcrylicBrush" | ||
TintColor="#F3F3F3" | ||
TintOpacity="0.0" | ||
FallbackColor="#F3F3F3" | ||
BackgroundSource="HostBackdrop"/> | ||
<SolidColorBrush x:Key="SystemControlDefaultBrighteningBrush" Color="#FFFFFF" Opacity="0.5"/> | ||
</ResourceDictionary> | ||
|
||
<ResourceDictionary x:Key="HighContrast"> | ||
<SolidColorBrush x:Key="SystemControlTransientBackgroundBrush" Color="{ThemeResource SystemColorWindowColor}"/> | ||
<SolidColorBrush x:Key="SystemControlTransientAcrylicElementBrush" Color="{ThemeResource SystemColorWindowColor}"/> | ||
<SolidColorBrush x:Key="SystemControlTransientBackgroundInverseBrush" Color="{ThemeResource SystemColorWindowTextColor}" /> | ||
<SolidColorBrush x:Key="SystemControlBaseAcrylicBrush" Color="{ThemeResource SystemColorWindowColor}"/> | ||
<SolidColorBrush x:Key="SystemControlDefaultBrighteningBrush" Color="{ThemeResource SystemColorWindowColor}"/> | ||
</ResourceDictionary> | ||
|
||
</ResourceDictionary.ThemeDictionaries> | ||
</ResourceDictionary> |
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
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
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
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
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