Browse Source

set transparency fallback based on theme.

Dan Walmsley 5 years ago
parent
commit
9d3ef2de31
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Avalonia.Themes.Fluent/Window.xaml

+ 2 - 1
src/Avalonia.Themes.Fluent/Window.xaml

@@ -1,5 +1,6 @@
 <Style xmlns="https://github.com/avaloniaui" Selector="Window">
-  <Setter Property="Background" Value="{DynamicResource SystemControlBackgroundChromeMediumBrush}"/>
+  <Setter Property="Background" Value="{DynamicResource SystemControlBackgroundChromeBlackHighBrush}"/>
+  <Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource SystemControlBackgroundChromeBlackHighBrush}"/>
   <Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}"/>
   <Setter Property="FontSize" Value="{DynamicResource FontSizeNormal}"/>
   <Setter Property="Template">