112 lines
5.0 KiB
Plaintext
112 lines
5.0 KiB
Plaintext
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||
|
|
<!-- 主窗口背景 -->
|
||
|
|
<SolidColorBrush x:Key="WindowBackground" Color="#1E1E2F" />
|
||
|
|
|
||
|
|
<!-- 卡片背景 -->
|
||
|
|
<SolidColorBrush x:Key="CardBackground" Color="#2D2D3A" />
|
||
|
|
|
||
|
|
<!-- 按钮样式 -->
|
||
|
|
<Style TargetType="Button">
|
||
|
|
<Setter Property="Background" Value="#3A6EA5" />
|
||
|
|
<Setter Property="Foreground" Value="White" />
|
||
|
|
<Setter Property="FontSize" Value="14" />
|
||
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
||
|
|
<Setter Property="BorderThickness" Value="0" />
|
||
|
|
<Setter Property="Padding" Value="12,6" />
|
||
|
|
<Setter Property="Cursor" Value="Hand" />
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Border Background="{TemplateBinding Background}"
|
||
|
|
CornerRadius="6"
|
||
|
|
Padding="{TemplateBinding Padding}">
|
||
|
|
<ContentPresenter HorizontalAlignment="Center"
|
||
|
|
VerticalAlignment="Center"/>
|
||
|
|
</Border>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Style.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter Property="Background" Value="#2C5A8C" />
|
||
|
|
</Trigger>
|
||
|
|
<Trigger Property="IsPressed" Value="True">
|
||
|
|
<Setter Property="Background" Value="#1F3F60" />
|
||
|
|
</Trigger>
|
||
|
|
</Style.Triggers>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<!-- 文本框样式 -->
|
||
|
|
<Style TargetType="TextBox">
|
||
|
|
<Setter Property="Background" Value="#3A3A4A" />
|
||
|
|
<Setter Property="Foreground" Value="White" />
|
||
|
|
<Setter Property="BorderBrush" Value="#555" />
|
||
|
|
<Setter Property="BorderThickness" Value="1" />
|
||
|
|
<Setter Property="Padding" Value="6,4" />
|
||
|
|
<Setter Property="FontSize" Value="13" />
|
||
|
|
<Setter Property="CaretBrush" Value="White" />
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="TextBox">
|
||
|
|
<Border Background="{TemplateBinding Background}"
|
||
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
|
CornerRadius="4">
|
||
|
|
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}"/>
|
||
|
|
</Border>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Style.Triggers>
|
||
|
|
<Trigger Property="IsFocused" Value="True">
|
||
|
|
<Setter Property="BorderBrush" Value="#3A6EA5" />
|
||
|
|
</Trigger>
|
||
|
|
</Style.Triggers>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<!-- 标签样式 -->
|
||
|
|
<Style TargetType="Label">
|
||
|
|
<Setter Property="Foreground" Value="#DDD" />
|
||
|
|
<Setter Property="FontSize" Value="13" />
|
||
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<!-- GroupBox 样式 -->
|
||
|
|
<Style TargetType="GroupBox">
|
||
|
|
<Setter Property="BorderBrush" Value="#3A6EA5" />
|
||
|
|
<Setter Property="BorderThickness" Value="1" />
|
||
|
|
<Setter Property="Background" Value="{StaticResource CardBackground}" />
|
||
|
|
<Setter Property="Foreground" Value="White" />
|
||
|
|
<Setter Property="Margin" Value="8" />
|
||
|
|
<Setter Property="Padding" Value="8" />
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="GroupBox">
|
||
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
|
Background="{TemplateBinding Background}"
|
||
|
|
CornerRadius="8">
|
||
|
|
<Grid Margin="{TemplateBinding Padding}">
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
<RowDefinition Height="*" />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<Border Grid.Row="0"
|
||
|
|
Background="{TemplateBinding BorderBrush}"
|
||
|
|
CornerRadius="4,4,0,0"
|
||
|
|
Margin="-8,-8,-8,0"
|
||
|
|
Padding="8,4">
|
||
|
|
<ContentPresenter ContentSource="Header"
|
||
|
|
RecognizesAccessKey="True"
|
||
|
|
TextElement.Foreground="White"
|
||
|
|
TextElement.FontWeight="Bold"/>
|
||
|
|
</Border>
|
||
|
|
<ContentPresenter Grid.Row="1" Margin="0,8,0,0" />
|
||
|
|
</Grid>
|
||
|
|
</Border>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
</ResourceDictionary>
|