Files
ShrlAlgoToolkit/WPFDark/Controls/BiaNumberEditor.xaml

46 lines
2.8 KiB
Plaintext
Raw Normal View History

2025-07-11 09:20:23 +08:00
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:wpf="clr-namespace:WPFDark"
xmlns:controls="clr-namespace:WPFDark.Controls">
<Style TargetType="{x:Type controls:BiaNumberEditor}">
<Setter Property="Height" Value="{x:Static wpf:Boxes.BasicOneLineHeight}" />
<Setter Property="Padding" Value="2,4" />
<Setter Property="Background" Value="{DynamicResource TextBoxBackgroundBrushKey}" />
<Setter Property="BorderColor" Value="{DynamicResource TextBoxBorderColorKey}" />
<Setter Property="Foreground" Value="{DynamicResource TextBoxForegroundBrushKey}" />
<Setter Property="CaptionForeground" Value="{DynamicResource TextBoxForegroundBrushKey}" />
<Setter Property="SliderBrush" Value="{DynamicResource AccentBrushKey}" />
<Setter Property="Focusable" Value="True" />
<Style.Triggers>
<Trigger Property="Mode" Value="WideRange">
<Setter Property="CaptionForeground" Value="{DynamicResource TextBoxSubForegroundBrushKey}" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource ActiveBackgroundBrushKey}" />
<Setter Property="BorderColor" Value="{DynamicResource ActiveBorderColorKey}" />
<Setter Property="SliderBrush" Value="{DynamicResource AccentBrushKey.IsMouseOver}" />
</Trigger>
<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter Property="Background" Value="{DynamicResource ActiveBackgroundBrushKey}" />
</Trigger>
<Trigger Property="IsReadOnly" Value="True">
<Setter Property="Foreground" Value="{DynamicResource InactiveForegroundBrushKey}" />
<Setter Property="CaptionForeground" Value="{DynamicResource InactiveForegroundBrushKey}" />
<Setter Property="SliderBrush" Value="{DynamicResource InactiveControlBrushKey}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="{DynamicResource InactiveBackgroundBrushKey}" />
<Setter Property="BorderColor" Value="{DynamicResource InactiveBorderColorKey}" />
<Setter Property="Foreground" Value="{DynamicResource InactiveForegroundBrushKey}" />
<Setter Property="CaptionForeground" Value="{DynamicResource InactiveForegroundBrushKey}" />
<Setter Property="SliderBrush" Value="{DynamicResource InactiveControlBrushKey}" />
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>