239 lines
13 KiB
XML
239 lines
13 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Color x:Key="WindowBackgroundColor">#FFF4F7F6</Color>
|
|
<Color x:Key="SurfaceColor">#FFFFFFFF</Color>
|
|
<Color x:Key="SurfaceMutedColor">#FFF0F5F3</Color>
|
|
<Color x:Key="PrimaryColor">#FF0F766E</Color>
|
|
<Color x:Key="PrimaryHoverColor">#FF0B5F59</Color>
|
|
<Color x:Key="PrimaryPressedColor">#FF084C47</Color>
|
|
<Color x:Key="TextColor">#FF17201E</Color>
|
|
<Color x:Key="MutedTextColor">#FF64716E</Color>
|
|
<Color x:Key="BorderColor">#FFD9E3E0</Color>
|
|
<Color x:Key="ControlHoverColor">#FFEAF1EF</Color>
|
|
<Color x:Key="SidebarColor">#FF0E2824</Color>
|
|
<Color x:Key="SidebarHoverColor">#FF183A34</Color>
|
|
<Color x:Key="SidebarSelectedColor">#FF225046</Color>
|
|
<Color x:Key="SuccessColor">#FF15803D</Color>
|
|
<Color x:Key="WarningColor">#FFB45309</Color>
|
|
<Color x:Key="ErrorColor">#FFB91C1C</Color>
|
|
<Color x:Key="NeutralColor">#FF64748B</Color>
|
|
|
|
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="{StaticResource WindowBackgroundColor}" />
|
|
<SolidColorBrush x:Key="SurfaceBrush" Color="{StaticResource SurfaceColor}" />
|
|
<SolidColorBrush x:Key="SurfaceMutedBrush" Color="{StaticResource SurfaceMutedColor}" />
|
|
<SolidColorBrush x:Key="PrimaryBrush" Color="{StaticResource PrimaryColor}" />
|
|
<SolidColorBrush x:Key="PrimaryHoverBrush" Color="{StaticResource PrimaryHoverColor}" />
|
|
<SolidColorBrush x:Key="PrimaryPressedBrush" Color="{StaticResource PrimaryPressedColor}" />
|
|
<SolidColorBrush x:Key="TextBrush" Color="{StaticResource TextColor}" />
|
|
<SolidColorBrush x:Key="MutedTextBrush" Color="{StaticResource MutedTextColor}" />
|
|
<SolidColorBrush x:Key="BorderBrush" Color="{StaticResource BorderColor}" />
|
|
<SolidColorBrush x:Key="ControlHoverBrush" Color="{StaticResource ControlHoverColor}" />
|
|
<SolidColorBrush x:Key="SidebarBrush" Color="{StaticResource SidebarColor}" />
|
|
<SolidColorBrush x:Key="SidebarHoverBrush" Color="{StaticResource SidebarHoverColor}" />
|
|
<SolidColorBrush x:Key="SidebarSelectedBrush" Color="{StaticResource SidebarSelectedColor}" />
|
|
<SolidColorBrush x:Key="SuccessBrush" Color="{StaticResource SuccessColor}" />
|
|
<SolidColorBrush x:Key="WarningBrush" Color="{StaticResource WarningColor}" />
|
|
<SolidColorBrush x:Key="ErrorBrush" Color="{StaticResource ErrorColor}" />
|
|
<SolidColorBrush x:Key="NeutralBrush" Color="{StaticResource NeutralColor}" />
|
|
<SolidColorBrush x:Key="SuccessSurfaceBrush" Color="#FFF0FDF4" />
|
|
<SolidColorBrush x:Key="WarningSurfaceBrush" Color="#FFFFFBEB" />
|
|
<SolidColorBrush x:Key="ErrorSurfaceBrush" Color="#FFFEF2F2" />
|
|
<SolidColorBrush x:Key="NeutralSurfaceBrush" Color="#FFF1F5F9" />
|
|
|
|
<Thickness x:Key="PagePadding">32,28</Thickness>
|
|
<Thickness x:Key="CardPadding">24</Thickness>
|
|
<CornerRadius x:Key="CardCornerRadius">14</CornerRadius>
|
|
|
|
<Style TargetType="Window">
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei UI" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
|
|
<Setter Property="Background" Value="{StaticResource WindowBackgroundBrush}" />
|
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display" />
|
|
<Setter Property="TextOptions.TextRenderingMode" Value="ClearType" />
|
|
</Style>
|
|
|
|
<Style TargetType="Button">
|
|
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
|
|
<Setter Property="Background" Value="{StaticResource SurfaceBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Padding" Value="16,9" />
|
|
<Setter Property="MinHeight" Value="40" />
|
|
<Setter Property="Margin" Value="0,0,10,0" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="Chrome"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="8"
|
|
SnapsToDevicePixels="True">
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Margin="{TemplateBinding Padding}"
|
|
RecognizesAccessKey="True" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter TargetName="Chrome" Property="Opacity" Value="0.45" />
|
|
<Setter Property="Cursor" Value="Arrow" />
|
|
</Trigger>
|
|
<Trigger Property="IsKeyboardFocused" Value="True">
|
|
<Setter TargetName="Chrome" Property="BorderBrush" Value="{StaticResource PrimaryBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="{StaticResource ControlHoverBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="{StaticResource BorderBrush}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="PrimaryButtonStyle"
|
|
TargetType="Button"
|
|
BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="Background" Value="{StaticResource PrimaryBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource PrimaryBrush}" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="{StaticResource PrimaryHoverBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="{StaticResource PrimaryPressedBrush}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="DangerButtonStyle"
|
|
TargetType="Button"
|
|
BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Foreground" Value="{StaticResource ErrorBrush}" />
|
|
<Setter Property="Background" Value="{StaticResource ErrorSurfaceBrush}" />
|
|
<Setter Property="BorderBrush" Value="#FFFECACA" />
|
|
</Style>
|
|
|
|
<Style x:Key="SidebarButtonStyle"
|
|
TargetType="Button"
|
|
BasedOn="{StaticResource {x:Type Button}}">
|
|
<Setter Property="Foreground" Value="#FFD4E3DF" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="Margin" Value="0,2" />
|
|
<Setter Property="Padding" Value="13,11" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="{StaticResource SidebarHoverBrush}" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style TargetType="ToggleButton">
|
|
<Setter Property="Foreground" Value="#FFD4E3DF" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="Padding" Value="13,11" />
|
|
<Setter Property="Margin" Value="0,2" />
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
<Border x:Name="Chrome"
|
|
Background="{TemplateBinding Background}"
|
|
CornerRadius="8">
|
|
<Grid>
|
|
<Border x:Name="Indicator"
|
|
Width="3"
|
|
Margin="0,8,0,8"
|
|
Background="Transparent"
|
|
CornerRadius="2"
|
|
HorizontalAlignment="Left" />
|
|
<ContentPresenter Margin="{TemplateBinding Padding}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="Center" />
|
|
</Grid>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="Chrome" Property="Background" Value="{StaticResource SidebarHoverBrush}" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Setter TargetName="Chrome" Property="Background" Value="{StaticResource SidebarSelectedBrush}" />
|
|
<Setter TargetName="Indicator" Property="Background" Value="#FF5EEAD4" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
</Trigger>
|
|
<Trigger Property="IsKeyboardFocused" Value="True">
|
|
<Setter TargetName="Chrome" Property="BorderBrush" Value="#FF5EEAD4" />
|
|
<Setter TargetName="Chrome" Property="BorderThickness" Value="1" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Padding" Value="11,8" />
|
|
<Setter Property="MinHeight" Value="40" />
|
|
<Setter Property="Background" Value="{StaticResource SurfaceBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="SelectionBrush" Value="{StaticResource PrimaryBrush}" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
|
<Setter Property="BorderBrush" Value="{StaticResource PrimaryBrush}" />
|
|
</Trigger>
|
|
<Trigger Property="IsReadOnly" Value="True">
|
|
<Setter Property="Background" Value="{StaticResource SurfaceMutedBrush}" />
|
|
<Setter Property="Foreground" Value="{StaticResource MutedTextBrush}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style TargetType="PasswordBox">
|
|
<Setter Property="Padding" Value="11,8" />
|
|
<Setter Property="MinHeight" Value="40" />
|
|
<Setter Property="Background" Value="{StaticResource SurfaceBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Style.Triggers>
|
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
|
<Setter Property="BorderBrush" Value="{StaticResource PrimaryBrush}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<Style x:Key="CardBorderStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="{StaticResource SurfaceBrush}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="{StaticResource CardCornerRadius}" />
|
|
<Setter Property="Padding" Value="{StaticResource CardPadding}" />
|
|
</Style>
|
|
|
|
<Style x:Key="SectionTitleStyle" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
</Style>
|
|
|
|
<Style TargetType="ProgressBar">
|
|
<Setter Property="Foreground" Value="{StaticResource PrimaryBrush}" />
|
|
<Setter Property="Background" Value="{StaticResource SurfaceMutedBrush}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
</Style>
|
|
</ResourceDictionary>
|