Browse Source

set transparency fallback based on theme.

Dan Walmsley 5 năm trước cách đây
mục cha
commit
9d3ef2de31
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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">