<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<!-- 颜色定义 -->
|
<SolidColorBrush x:Key="TsBgBrush" Color="#F0F2F5"/>
|
<SolidColorBrush x:Key="TsPanelBrush" Color="#FFFFFF"/>
|
<SolidColorBrush x:Key="BorderBrush" Color="#A0AEC0"/>
|
<SolidColorBrush x:Key="PrimaryBrush" Color="#2E5C8A"/>
|
|
<!-- 状态颜色画刷 -->
|
<SolidColorBrush x:Key="StatusOKBrush" Color="#2D8659"/>
|
<SolidColorBrush x:Key="StatusNGBrush" Color="#C53030"/>
|
<SolidColorBrush x:Key="StatusTestingBrush" Color="#3182CE"/>
|
<SolidColorBrush x:Key="StatusDefaultBrush" Color="#E0E0E0"/>
|
<SolidColorBrush x:Key="BorderDarkBrush" Color="#718096"/>
|
|
<!-- ActionButtonStyle 按钮样式 -->
|
<Style x:Key="ActionButtonStyle" TargetType="Button">
|
<Setter Property="Height" Value="22"/>
|
<Setter Property="Padding" Value="8,0"/>
|
<Setter Property="Background" Value="White"/>
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="FontSize" Value="11"/>
|
<Setter Property="Cursor" Value="Hand"/>
|
<Setter Property="Template">
|
<Setter.Value>
|
<ControlTemplate TargetType="Button">
|
<Border Background="{TemplateBinding Background}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
CornerRadius="2"
|
Padding="{TemplateBinding Padding}">
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
</Border>
|
<ControlTemplate.Triggers>
|
<Trigger Property="IsMouseOver" Value="True">
|
<Setter Property="Background" Value="#F0F0F0"/>
|
</Trigger>
|
</ControlTemplate.Triggers>
|
</ControlTemplate>
|
</Setter.Value>
|
</Setter>
|
</Style>
|
|
<!-- ManualDebug 窗口专用按钮样式 -->
|
<Style x:Key="DebugButtonStyle" TargetType="Button">
|
<Setter Property="Width" Value="100"/>
|
<Setter Property="Height" Value="32"/>
|
<Setter Property="Background" Value="White"/>
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="FontSize" Value="11"/>
|
<Setter Property="Cursor" Value="Hand"/>
|
<Setter Property="Template">
|
<Setter.Value>
|
<ControlTemplate TargetType="Button">
|
<Border Background="{TemplateBinding Background}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
CornerRadius="4"
|
Padding="{TemplateBinding Padding}">
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
</Border>
|
<ControlTemplate.Triggers>
|
<Trigger Property="IsMouseOver" Value="True">
|
<Setter Property="Background" Value="#E8E8E8"/>
|
</Trigger>
|
<Trigger Property="IsPressed" Value="True">
|
<Setter Property="Background" Value="#D0D0D0"/>
|
</Trigger>
|
<Trigger Property="IsEnabled" Value="False">
|
<Setter Property="Background" Value="LightGray"/>
|
</Trigger>
|
</ControlTemplate.Triggers>
|
</ControlTemplate>
|
</Setter.Value>
|
</Setter>
|
</Style>
|
|
<!-- DataGrid样式 -->
|
<Style TargetType="DataGrid">
|
<Setter Property="AutoGenerateColumns" Value="False"/>
|
<Setter Property="CanUserAddRows" Value="False"/>
|
<Setter Property="CanUserDeleteRows" Value="False"/>
|
<Setter Property="HeadersVisibility" Value="Column"/>
|
<Setter Property="GridLinesVisibility" Value="All"/>
|
<Setter Property="HorizontalGridLinesBrush" Value="{StaticResource BorderBrush}"/>
|
<Setter Property="VerticalGridLinesBrush" Value="{StaticResource BorderBrush}"/>
|
<Setter Property="BorderBrush" Value="{StaticResource BorderDarkBrush}"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="Background" Value="White"/>
|
<Setter Property="RowBackground" Value="White"/>
|
<Setter Property="AlternatingRowBackground" Value="#F5F5F5"/>
|
<Setter Property="FontSize" Value="11"/>
|
</Style>
|
|
<Style TargetType="DataGridColumnHeader">
|
<Setter Property="Background" Value="#F5F5F5"/>
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
|
<Setter Property="BorderThickness" Value="0,0,1,1"/>
|
<Setter Property="Padding" Value="4"/>
|
<Setter Property="Height" Value="26"/>
|
<Setter Property="FontWeight" Value="Normal"/>
|
</Style>
|
|
<Style TargetType="DataGridCell">
|
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
|
<Setter Property="BorderThickness" Value="0"/>
|
<Setter Property="Padding" Value="2,4"/>
|
<Style.Triggers>
|
<Trigger Property="IsSelected" Value="True">
|
<Setter Property="Background" Value="#BBDEFB"/>
|
<Setter Property="Foreground" Value="Black"/>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
|
<Style TargetType="DataGridRow">
|
<Style.Triggers>
|
<Trigger Property="IsSelected" Value="True">
|
<Setter Property="Background" Value="#BBDEFB"/>
|
</Trigger>
|
<Trigger Property="IsMouseOver" Value="True">
|
<Setter Property="Background" Value="#E3F2FD"/>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
|
</ResourceDictionary>
|