fix: fix TextBlock default theme. This is a temporary fix.

This commit is contained in:
rabbitism 2022-12-24 15:11:53 +08:00 committed by Dong Bin
parent 8320fe72e3
commit 6070a4e1a3

View File

@ -5,10 +5,10 @@
</StackPanel> </StackPanel>
</Design.PreviewWith> </Design.PreviewWith>
<ControlTheme x:Key="{x:Type TextBlock}" TargetType="TextBlock"> <ControlTheme x:Key="{x:Type TextBlock}" TargetType="TextBlock">
<Setter Property="TextBlock.Foreground" Value="{DynamicResource TextBlockDefaultForeground}" /> <!--<Setter Property="TextBlock.Foreground" Value="{DynamicResource TextBlockDefaultForeground}" />-->
<Setter Property="TextBlock.FontSize" Value="{DynamicResource TextBlockFontSize}" /> <Setter Property="TextBlock.FontSize" Value="{DynamicResource TextBlockFontSize}" />
<Style Selector="^:disabled"> <Style Selector="^:disabled">
<Setter Property="Label.Foreground" Value="{DynamicResource TextBlockDisabledForeground}" /> <Setter Property="TextBlock.Foreground" Value="{DynamicResource TextBlockDisabledForeground}" />
</Style> </Style>
<Style Selector="^.Secondary"> <Style Selector="^.Secondary">
<Setter Property="TextBlock.Foreground" Value="{DynamicResource TextBlockSecondaryForeground}" /> <Setter Property="TextBlock.Foreground" Value="{DynamicResource TextBlockSecondaryForeground}" />