Ver Fonte

in settings, flatten the top-level sections so they sit directly on the window background, while keeping the inner editor cards where they still help group controls. the background should use the default window color

Daniel Chalmers há 1 mês atrás
pai
commit
d21d2bc2f9
1 ficheiros alterados com 5 adições e 6 exclusões
  1. 5 6
      DesktopClock/SettingsWindow.xaml

+ 5 - 6
DesktopClock/SettingsWindow.xaml

@@ -13,7 +13,7 @@
         MinWidth="1120"
         MinHeight="720"
         ResizeMode="CanResize"
-        Background="#EEF3F8"
+        Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
         WindowStartupLocation="CenterScreen">
     <Window.Resources>
         <SolidColorBrush x:Key="CardBrush"
@@ -132,11 +132,10 @@
 
         <Style x:Key="SectionCardStyle"
                TargetType="Border">
-            <Setter Property="Background" Value="{StaticResource CardBrush}" />
-            <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
-            <Setter Property="BorderThickness" Value="1" />
-            <Setter Property="CornerRadius" Value="10" />
-            <Setter Property="Padding" Value="24" />
+            <Setter Property="Background" Value="Transparent" />
+            <Setter Property="BorderThickness" Value="0" />
+            <Setter Property="CornerRadius" Value="0" />
+            <Setter Property="Padding" Value="0" />
             <Setter Property="Margin" Value="0,0,0,20" />
         </Style>