Skip to content

Commit

Permalink
Give our NavigationView's acrylic a fallback color
Browse files Browse the repository at this point in the history
It will be a different color than the background, so it will look less
weird when it's unfocused. It also fixes the bug where the navigation
menu is transparent when acrylic is disabled systemwide.

Fixes #9337
  • Loading branch information
DHowett committed Apr 8, 2021
1 parent 7f5a19b commit 3e45dde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cascadia/TerminalSettingsEditor/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@

<AcrylicBrush x:Key="NavigationViewDefaultPaneBackground"
BackgroundSource="Backdrop"
FallbackColor="{ThemeResource SystemChromeMediumLowColor}"
TintColor="{ThemeResource SystemChromeMediumColor}"
TintOpacity="0.5" />
<AcrylicBrush x:Key="NavigationViewTopPaneBackground"
BackgroundSource="Backdrop"
FallbackColor="{ThemeResource SystemChromeMediumLowColor}"
TintColor="{ThemeResource SystemChromeMediumColor}"
TintOpacity="0.5" />
<AcrylicBrush x:Key="NavigationViewExpandedPaneBackground"
BackgroundSource="HostBackdrop"
FallbackColor="{ThemeResource SystemChromeMediumLowColor}"
TintColor="{ThemeResource SystemChromeMediumColor}"
TintOpacity="0.7" />
</ResourceDictionary>
Expand Down

0 comments on commit 3e45dde

Please sign in to comment.