mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-25 10:56:35 +08:00
fix: fix debug crash issue.
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
<ControlTheme x:Key="SplitViewToggleSwitch"
|
<ControlTheme x:Key="SplitViewToggleSwitch"
|
||||||
BasedOn="{StaticResource ThemeToggleSwitch}"
|
BasedOn="{StaticResource ThemeToggleSwitch}"
|
||||||
TargetType="ToggleSwitch">
|
TargetType="ToggleSwitch">
|
||||||
<Setter Property="Content"
|
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultTertiaryForeground}" />
|
||||||
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="Content" Value="{StaticResource SemiIconSidebar}" />
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -50,10 +50,6 @@
|
|||||||
<Setter Property="Padding" Value="8" />
|
<Setter Property="Padding" Value="8" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultTertiaryForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultTertiaryForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="ToggleSwitch">
|
|
||||||
<Setter Property="Theme" Value="{DynamicResource ThemeToggleSwitch}" />
|
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultTertiaryForeground}" />
|
|
||||||
</Style>
|
|
||||||
<Style Selector="PathIcon">
|
<Style Selector="PathIcon">
|
||||||
<Setter Property="Theme" Value="{DynamicResource InnerPathIcon}" />
|
<Setter Property="Theme" Value="{DynamicResource InnerPathIcon}" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -68,6 +64,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<ToggleSwitch
|
<ToggleSwitch
|
||||||
|
Theme="{DynamicResource ThemeToggleSwitch}"
|
||||||
|
Foreground="{DynamicResource ButtonDefaultTertiaryForeground}"
|
||||||
Command="{Binding ToggleThemeCommand}"
|
Command="{Binding ToggleThemeCommand}"
|
||||||
OnContent="{StaticResource SemiIconMoon}"
|
OnContent="{StaticResource SemiIconMoon}"
|
||||||
OffContent="{StaticResource SemiIconSun}" />
|
OffContent="{StaticResource SemiIconSun}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user