added layour swithing by caps key

This commit is contained in:
2026-08-09 01:02:52 +05:00
parent 7c5675f69f
commit e99f30fcbc
15 changed files with 578 additions and 9 deletions
+50
View File
@@ -152,6 +152,56 @@
</Setter>
</Style>
<!-- ======================= CheckBox ======================= -->
<Style TargetType="CheckBox">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Foreground" Value="{DynamicResource Theme.Foreground}" />
<Setter Property="MinHeight" Value="24" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<!-- Прозрачный фон делает щелчок по подписи попаданием в галочку -->
<StackPanel Orientation="Horizontal" Background="Transparent">
<Border x:Name="Box"
Width="18" Height="18"
CornerRadius="4"
VerticalAlignment="Center"
Background="{DynamicResource Theme.ControlBackground}"
BorderBrush="{DynamicResource Theme.ControlBorder}"
BorderThickness="1"
SnapsToDevicePixels="True">
<Path x:Name="Check"
HorizontalAlignment="Center" VerticalAlignment="Center"
Data="M0,4 L3.5,7.5 L9.5,0.5"
Stroke="White"
StrokeThickness="1.8"
StrokeStartLineCap="Round" StrokeEndLineCap="Round"
Visibility="Collapsed" />
</Border>
<ContentPresenter Margin="8,0,0,0" VerticalAlignment="Center" />
</StackPanel>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Box" Property="Background"
Value="{DynamicResource Theme.ControlHoverBackground}" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Box" Property="Background"
Value="{DynamicResource Theme.Accent}" />
<Setter TargetName="Box" Property="BorderBrush"
Value="{DynamicResource Theme.Accent}" />
<Setter TargetName="Check" Property="Visibility" Value="Visible" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ======================= Slider ======================= -->
<Style x:Key="SliderThumbStyle" TargetType="Thumb">