2024-11-27 19:18:22 +08:00
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2024-12-01 17:19:09 +08:00
|
|
|
<ControlTheme x:Key="ThemeToggleSwitch"
|
|
|
|
|
BasedOn="{StaticResource ButtonToggleSwitch}"
|
|
|
|
|
TargetType="ToggleSwitch">
|
2024-11-27 19:18:22 +08:00
|
|
|
<Setter Property="Padding" Value="8" />
|
2024-12-04 11:46:52 +08:00
|
|
|
<Setter Property="OnContent" Value="{Binding $self.Content}" />
|
2024-11-27 19:18:22 +08:00
|
|
|
<Setter Property="OnContentTemplate">
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<PathIcon Theme="{StaticResource InnerPathIcon}" Data="{Binding}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</Setter>
|
2024-12-04 11:46:52 +08:00
|
|
|
<Setter Property="OffContent" Value="{Binding $self.Content}" />
|
2024-11-27 19:18:22 +08:00
|
|
|
<Setter Property="OffContentTemplate">
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<PathIcon Theme="{StaticResource InnerPathIcon}" Data="{Binding}" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</Setter>
|
2024-12-01 17:19:09 +08:00
|
|
|
<Setter Property="ContentTemplate">
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<PathIcon Theme="{StaticResource InnerPathIcon}" Data="{Binding}" />
|
|
|
|
|
</DataTemplate>
|
2024-11-27 19:18:22 +08:00
|
|
|
</Setter>
|
|
|
|
|
</ControlTheme>
|
|
|
|
|
|
|
|
|
|
<ControlTheme x:Key="SplitViewToggleSwitch"
|
|
|
|
|
BasedOn="{StaticResource ThemeToggleSwitch}"
|
|
|
|
|
TargetType="ToggleSwitch">
|
2024-12-30 17:53:44 +08:00
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultTertiaryForeground}" />
|
|
|
|
|
<Setter Property="Content" Value="{StaticResource SemiIconSidebar}" />
|
2024-11-27 19:18:22 +08:00
|
|
|
</ControlTheme>
|
|
|
|
|
</ResourceDictionary>
|