2023-02-10 00:34:48 +08:00
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2023-02-13 03:29:56 +08:00
|
|
|
<ControlTheme x:Key="SplitViewToggleButton" TargetType="ToggleButton">
|
2024-11-24 22:46:36 +08:00
|
|
|
<Setter Property="Width" Value="32" />
|
|
|
|
<Setter Property="Height" Value="32" />
|
2024-11-25 17:57:24 +08:00
|
|
|
<Setter Property="Padding" Value="{DynamicResource ButtonDefaultPadding}" />
|
2024-11-24 22:46:36 +08:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultTertiaryForeground}" />
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
2024-11-25 17:57:24 +08:00
|
|
|
<Setter Property="CornerRadius" Value="{DynamicResource ButtonCornerRadius}" />
|
2024-11-24 22:46:36 +08:00
|
|
|
<Setter Property="Cursor" Value="Hand" />
|
|
|
|
<Setter Property="Content"
|
|
|
|
Value="M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z" />
|
|
|
|
<Setter Property="Template">
|
2023-02-13 03:29:56 +08:00
|
|
|
<ControlTemplate TargetType="ToggleButton">
|
|
|
|
<Border
|
|
|
|
Name="Background"
|
2024-11-24 22:46:36 +08:00
|
|
|
Padding="{TemplateBinding Padding}"
|
2023-02-13 03:29:56 +08:00
|
|
|
Background="{TemplateBinding Background}"
|
2024-11-25 17:57:24 +08:00
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
2024-11-24 22:46:36 +08:00
|
|
|
CornerRadius="{TemplateBinding CornerRadius}">
|
2023-02-13 03:29:56 +08:00
|
|
|
<PathIcon
|
|
|
|
Name="Icon"
|
2024-11-24 22:46:36 +08:00
|
|
|
Theme="{DynamicResource InnerPathIcon}"
|
|
|
|
Data="{TemplateBinding Content}"
|
|
|
|
Foreground="{TemplateBinding Foreground}" />
|
2023-02-13 03:29:56 +08:00
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter>
|
|
|
|
<Style Selector="^:pointerover">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource ButtonDefaultPointeroverBackground}" />
|
|
|
|
</Style>
|
|
|
|
<Style Selector="^:pressed">
|
|
|
|
<Setter Property="Background" Value="{DynamicResource ButtonDefaultPressedBackground}" />
|
|
|
|
</Style>
|
|
|
|
</ControlTheme>
|
2024-11-24 22:46:36 +08:00
|
|
|
</ResourceDictionary>
|