Files
petwash/PetWashControl/Resources/Styles.xaml

212 lines
10 KiB
Plaintext
Raw Normal View History

2026-02-25 15:43:47 +08:00
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2026-02-25 18:30:24 +08:00
<!-- 深蓝科技风颜色定义 -->
<SolidColorBrush x:Key="BackgroundBrush" Color="#0F3A7D"/>
<SolidColorBrush x:Key="BackgroundGradientBrush" Color="#1A4A8D"/>
<SolidColorBrush x:Key="SurfaceBrush" Color="#1E5AA8"/>
<SolidColorBrush x:Key="TextPrimaryBrush" Color="#E8F0FF"/>
<SolidColorBrush x:Key="TextSecondaryBrush" Color="#B0C4DE"/>
<SolidColorBrush x:Key="AccentBrush" Color="#00D4FF"/>
<SolidColorBrush x:Key="SuccessBrush" Color="#00FF88"/>
<SolidColorBrush x:Key="WarningBrush" Color="#FFB800"/>
<SolidColorBrush x:Key="ErrorBrush" Color="#FF4444"/>
<SolidColorBrush x:Key="BorderBrush" Color="#2A6BC0"/>
<SolidColorBrush x:Key="PanelBrush" Color="#0D2F5F"/>
<!-- 渐变背景 -->
<LinearGradientBrush x:Key="BackgroundGradient" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#0F3A7D" Offset="0"/>
<GradientStop Color="#1A4A8D" Offset="0.5"/>
<GradientStop Color="#0F3A7D" Offset="1"/>
</LinearGradientBrush>
2026-02-25 15:43:47 +08:00
2026-02-25 18:30:24 +08:00
<!-- 科技风按钮样式 -->
<Style x:Key="TechButton" TargetType="Button">
<Setter Property="Background" Value="{StaticResource AccentBrush}"/>
<Setter Property="Foreground" Value="#0F3A7D"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Padding" Value="30,15"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/>
2026-02-25 15:43:47 +08:00
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
2026-02-25 18:30:24 +08:00
<Border x:Name="border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="8"
2026-02-25 15:43:47 +08:00
Padding="{TemplateBinding Padding}">
2026-02-25 18:30:24 +08:00
<Border.Effect>
<DropShadowEffect Color="#00D4FF" BlurRadius="15" ShadowDepth="0" Opacity="0.6"/>
</Border.Effect>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
2026-02-25 15:43:47 +08:00
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
2026-02-25 18:30:24 +08:00
<Setter TargetName="border" Property="Background" Value="#00E8FF"/>
<Setter TargetName="border" Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#00D4FF" BlurRadius="20" ShadowDepth="0" Opacity="0.8"/>
</Setter.Value>
</Setter>
2026-02-25 15:43:47 +08:00
</Trigger>
<Trigger Property="IsPressed" Value="True">
2026-02-25 18:30:24 +08:00
<Setter TargetName="border" Property="Background" Value="#00B8E6"/>
2026-02-25 15:43:47 +08:00
</Trigger>
<Trigger Property="IsEnabled" Value="False">
2026-02-25 18:30:24 +08:00
<Setter TargetName="border" Property="Background" Value="#2A6BC0"/>
<Setter TargetName="border" Property="BorderBrush" Value="#2A6BC0"/>
<Setter Property="Foreground" Value="#5A7FA0"/>
<Setter TargetName="border" Property="Effect" Value="{x:Null}"/>
2026-02-25 15:43:47 +08:00
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2026-02-25 18:30:24 +08:00
<Style x:Key="SecondaryTechButton" TargetType="Button" BasedOn="{StaticResource TechButton}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{StaticResource AccentBrush}"/>
<Setter Property="BorderBrush" Value="{StaticResource AccentBrush}"/>
2026-02-25 15:43:47 +08:00
</Style>
2026-02-25 18:30:24 +08:00
<!-- 科技风面板样式 -->
<Style x:Key="TechPanel" TargetType="Border">
<Setter Property="Background" Value="{StaticResource PanelBrush}"/>
2026-02-25 15:43:47 +08:00
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
2026-02-25 18:30:24 +08:00
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="CornerRadius" Value="10"/>
<Setter Property="Padding" Value="20"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#00D4FF" BlurRadius="10" ShadowDepth="0" Opacity="0.3"/>
</Setter.Value>
</Setter>
2026-02-25 15:43:47 +08:00
</Style>
2026-02-25 18:30:24 +08:00
<!-- LED指示灯样式 -->
<Style x:Key="LEDIndicator" TargetType="Ellipse">
<Setter Property="Width" Value="16"/>
<Setter Property="Height" Value="16"/>
<Setter Property="Fill" Value="{StaticResource SuccessBrush}"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#00FF88" BlurRadius="8" ShadowDepth="0" Opacity="0.8"/>
</Setter.Value>
</Setter>
</Style>
<!-- 进度条样式 -->
<Style x:Key="TechProgressBar" TargetType="ProgressBar">
<Setter Property="Height" Value="30"/>
<Setter Property="Background" Value="#0D2F5F"/>
<Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="Foreground" Value="{StaticResource AccentBrush}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ProgressBar">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="5">
<Grid>
<Border x:Name="PART_Track"/>
<Border x:Name="PART_Indicator"
HorizontalAlignment="Left"
Background="{TemplateBinding Foreground}"
CornerRadius="3"
Margin="2">
<Border.Effect>
<DropShadowEffect Color="#00D4FF" BlurRadius="10" ShadowDepth="0" Opacity="0.8"/>
</Border.Effect>
</Border>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
2026-02-25 15:43:47 +08:00
</Style>
<!-- TextBlock标题样式 -->
<Style x:Key="TitleTextBlock" TargetType="TextBlock">
2026-02-25 18:30:24 +08:00
<Setter Property="FontSize" Value="36"/>
2026-02-25 15:43:47 +08:00
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="{StaticResource TextPrimaryBrush}"/>
2026-02-25 18:30:24 +08:00
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#00D4FF" BlurRadius="5" ShadowDepth="0" Opacity="0.5"/>
</Setter.Value>
</Setter>
2026-02-25 15:43:47 +08:00
</Style>
<Style x:Key="SubtitleTextBlock" TargetType="TextBlock">
2026-02-25 18:30:24 +08:00
<Setter Property="FontSize" Value="22"/>
2026-02-25 15:43:47 +08:00
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{StaticResource TextPrimaryBrush}"/>
</Style>
<Style x:Key="BodyTextBlock" TargetType="TextBlock">
2026-02-25 18:30:24 +08:00
<Setter Property="FontSize" Value="16"/>
2026-02-25 15:43:47 +08:00
<Setter Property="Foreground" Value="{StaticResource TextSecondaryBrush}"/>
</Style>
2026-02-25 18:30:24 +08:00
<Style x:Key="DataTextBlock" TargetType="TextBlock">
<Setter Property="FontSize" Value="28"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontFamily" Value="Consolas"/>
<Setter Property="Foreground" Value="{StaticResource AccentBrush}"/>
</Style>
<!-- 数字显示样式 -->
<Style x:Key="DigitalDisplay" TargetType="TextBlock">
<Setter Property="FontSize" Value="48"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontFamily" Value="Consolas"/>
<Setter Property="Foreground" Value="{StaticResource AccentBrush}"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="#00D4FF" BlurRadius="10" ShadowDepth="0" Opacity="0.8"/>
</Setter.Value>
</Setter>
</Style>
2026-02-27 10:38:52 +08:00
<!-- 参数调整按钮样式 -->
<Style x:Key="ParamAdjustButton" TargetType="Button">
<Setter Property="Width" Value="36"/>
<Setter Property="Height" Value="36"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Background" Value="#FF6F00"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border"
Background="{TemplateBinding Background}"
CornerRadius="8"
BorderThickness="0">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="#FF8F00"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Background" Value="#F57C00"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2026-02-25 15:43:47 +08:00
</ResourceDictionary>