|
|
@@ -2,7 +2,7 @@
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
|
|
<!-- ═══════════════════════════════════════════════════════════════
|
|
|
- YZWater3 工业风格控件样式 (使用 DynamicResource 跟随主题)
|
|
|
+ YZWater3 工业风格控件样式
|
|
|
═══════════════════════════════════════════════════════════════ -->
|
|
|
|
|
|
<!-- ─── 全局按钮: 手型光标 ─── -->
|
|
|
@@ -22,10 +22,10 @@
|
|
|
<Setter Property="MinHeight" Value="32"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-success:pointerover /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#009688"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource SuccessHoverBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-success:pressed /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#00796B"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource SuccessPressedBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-success:disabled">
|
|
|
<Setter Property="Opacity" Value="0.4"/>
|
|
|
@@ -43,10 +43,10 @@
|
|
|
<Setter Property="MinHeight" Value="32"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-danger:pointerover /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#2D0000"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource DangerHoverBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-danger:pressed /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#3D0000"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource DangerPressedBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-danger:disabled">
|
|
|
<Setter Property="Opacity" Value="0.4"/>
|
|
|
@@ -64,10 +64,10 @@
|
|
|
<Setter Property="MinHeight" Value="32"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-info:pointerover /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#1A2744"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource InfoHoverBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-info:pressed /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#1E3050"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource InfoPressedBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-info:disabled">
|
|
|
<Setter Property="Opacity" Value="0.4"/>
|
|
|
@@ -85,13 +85,34 @@
|
|
|
<Setter Property="MinHeight" Value="32"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-warning:pointerover /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#2D2000"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource WarningHoverBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-warning:pressed /template/ ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#3D2A00"/>
|
|
|
+ <Setter Property="Background" Value="{DynamicResource WarningPressedBrush}"/>
|
|
|
</Style>
|
|
|
<Style Selector="Button.btn-warning:disabled">
|
|
|
<Setter Property="Opacity" Value="0.4"/>
|
|
|
</Style>
|
|
|
|
|
|
+ <!-- ─── 切换按钮 (主题/语言) ─── -->
|
|
|
+ <Style Selector="Button.btn-toggle">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource ToggleBgBrush}"/>
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
|
|
+ <Setter Property="BorderBrush" Value="{DynamicResource ToggleBorderBrush}"/>
|
|
|
+ <Setter Property="BorderThickness" Value="1"/>
|
|
|
+ <Setter Property="CornerRadius" Value="4"/>
|
|
|
+ <Setter Property="Padding" Value="10,6"/>
|
|
|
+ <Setter Property="MinHeight" Value="32"/>
|
|
|
+ <Setter Property="FontFamily" Value="{DynamicResource MonoFont}"/>
|
|
|
+ <Setter Property="FontSize" Value="11"/>
|
|
|
+ <Setter Property="FontWeight" Value="Bold"/>
|
|
|
+ </Style>
|
|
|
+ <Style Selector="Button.btn-toggle:pointerover /template/ ContentPresenter">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource SuccessBrush}"/>
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}"/>
|
|
|
+ </Style>
|
|
|
+ <Style Selector="Button.btn-toggle:pressed /template/ ContentPresenter">
|
|
|
+ <Setter Property="Background" Value="{DynamicResource SuccessPressedBrush}"/>
|
|
|
+ </Style>
|
|
|
+
|
|
|
</Styles>
|