Refine WinUI shell and improve render diagnostics
This commit is contained in:
+90
-2
@@ -8,9 +8,97 @@
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
||||
<!-- Other merged dictionaries here -->
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<!-- Other app resources here -->
|
||||
<ResourceDictionary.ThemeDictionaries>
|
||||
<ResourceDictionary x:Key="Dark">
|
||||
<SolidColorBrush x:Key="PageBrush" Color="#0E1525"/>
|
||||
<SolidColorBrush x:Key="PanelBrush" Color="#162033"/>
|
||||
<SolidColorBrush x:Key="PanelAltBrush" Color="#1A2740"/>
|
||||
<SolidColorBrush x:Key="FieldBrush" Color="#1D2940"/>
|
||||
<SolidColorBrush x:Key="BorderBrush" Color="#2B3A58"/>
|
||||
<SolidColorBrush x:Key="AccentBrush" Color="#4AB8FF"/>
|
||||
<SolidColorBrush x:Key="AccentSoftBrush" Color="#13324F"/>
|
||||
<SolidColorBrush x:Key="TextBrush" Color="#F5F7FB"/>
|
||||
<SolidColorBrush x:Key="MutedBrush" Color="#9FB1CC"/>
|
||||
<SolidColorBrush x:Key="ButtonBrush" Color="#243554"/>
|
||||
<SolidColorBrush x:Key="ButtonHoverBrush" Color="#2E446C"/>
|
||||
<SolidColorBrush x:Key="PrimaryTextBrush" Color="#07111D"/>
|
||||
</ResourceDictionary>
|
||||
<ResourceDictionary x:Key="Light">
|
||||
<SolidColorBrush x:Key="PageBrush" Color="#F4F7FB"/>
|
||||
<SolidColorBrush x:Key="PanelBrush" Color="#FFFFFF"/>
|
||||
<SolidColorBrush x:Key="PanelAltBrush" Color="#EEF4FB"/>
|
||||
<SolidColorBrush x:Key="FieldBrush" Color="#F7FAFD"/>
|
||||
<SolidColorBrush x:Key="BorderBrush" Color="#C7D3E3"/>
|
||||
<SolidColorBrush x:Key="AccentBrush" Color="#0E9AEF"/>
|
||||
<SolidColorBrush x:Key="AccentSoftBrush" Color="#D6EEFF"/>
|
||||
<SolidColorBrush x:Key="TextBrush" Color="#122033"/>
|
||||
<SolidColorBrush x:Key="MutedBrush" Color="#5F7390"/>
|
||||
<SolidColorBrush x:Key="ButtonBrush" Color="#E5EDF7"/>
|
||||
<SolidColorBrush x:Key="ButtonHoverBrush" Color="#D7E4F4"/>
|
||||
<SolidColorBrush x:Key="PrimaryTextBrush" Color="#FFFFFF"/>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary.ThemeDictionaries>
|
||||
|
||||
<Style TargetType="Page">
|
||||
<Setter Property="Background" Value="{ThemeResource PageBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="CardBorderStyle" TargetType="Border">
|
||||
<Setter Property="Background" Value="{ThemeResource PanelBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource BorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="CornerRadius" Value="16" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SectionTitleStyle" TargetType="TextBlock">
|
||||
<Setter Property="Foreground" Value="{ThemeResource TextBrush}" />
|
||||
<Setter Property="FontSize" Value="24" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="MutedTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="Foreground" Value="{ThemeResource MutedBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="Button">
|
||||
<Setter Property="Background" Value="{ThemeResource ButtonBrush}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource TextBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource BorderBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="PrimaryButtonStyle" TargetType="Button">
|
||||
<Setter Property="Background" Value="{ThemeResource AccentBrush}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource PrimaryTextBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource AccentBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="TextBox">
|
||||
<Setter Property="Background" Value="{ThemeResource FieldBrush}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource TextBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource BorderBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ComboBox">
|
||||
<Setter Property="Background" Value="{ThemeResource FieldBrush}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource TextBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource BorderBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ProgressBar">
|
||||
<Setter Property="Foreground" Value="{ThemeResource AccentBrush}" />
|
||||
<Setter Property="Background" Value="{ThemeResource FieldBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ListView">
|
||||
<Setter Property="Background" Value="{ThemeResource FieldBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{ThemeResource BorderBrush}" />
|
||||
<Setter Property="Foreground" Value="{ThemeResource TextBrush}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="Foreground" Value="{ThemeResource TextBrush}" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
|
||||
Reference in New Issue
Block a user