style<*>: text render styles

This commit is contained in:
leo 2021-08-05 13:44:25 +08:00
parent 316344939a
commit 76a4e37736
31 changed files with 139 additions and 144 deletions

View file

@ -46,9 +46,12 @@
ContentSource="Header"
Margin="8,4">
<ContentPresenter.Resources>
<Style TargetType="{x:Type TextBlock}">
<Style TargetType="{x:Type TextBlock}" BasedOn="{x:Null}">
<Setter Property="Foreground" Value="{DynamicResource Brush.FG1}"/>
<Setter Property="FontWeight" Value="DemiBold"/>
<Setter Property="FontFamily" Value="Microsoft YaHei UI"/>
<Setter Property="FontSize" Value="9pt"/>
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type TabItem}}, Path=IsSelected}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource Brush.Accent1}"/>