Fix Color

This commit is contained in:
DB p 2021-11-25 15:34:10 +09:00
parent ec03cc2c59
commit c2887e285a
2 changed files with 3 additions and 6 deletions

View file

@ -5,7 +5,7 @@
xmlns:ui="http://schemas.modernwpf.com/2019">
<Style TargetType="{x:Type TextBlock}">
<Style TargetType="{x:Type ContentControl}">
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
</Style>
@ -1450,6 +1450,7 @@
<Style BasedOn="{StaticResource DefaultButtonStyle}" TargetType="Button" />
<!-- - Custom Toggle Switch from modern wpf for left label -->
<system:TimeSpan x:Key="RepositionDelay">0:0:0.033</system:TimeSpan>
<KeyTime x:Key="RepositionDuration">0:0:0.367</KeyTime>

View file

@ -1674,6 +1674,7 @@
<Trigger Property="IsSelected" Value="true">
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource ToggleSwitchFillOn}" />
<Setter TargetName="Bd2" Property="BorderThickness" Value="0" />
<Setter TargetName="Bd2" Property="TextElement.Foreground" Value="{DynamicResource Color02B}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
@ -1704,11 +1705,6 @@
Text="{Binding}"
TextWrapping="Wrap" />
</Grid>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="True">
<Setter TargetName="ThemeName" Property="Foreground" Value="{DynamicResource Color02B}" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemsPanel>