feat: replace Bold by {DynamicResource TextBlockTitleFontWeight}

This commit is contained in:
rabbitism
2024-07-24 18:18:55 +08:00
parent a92e68269f
commit 9ce5ac6691
9 changed files with 15 additions and 15 deletions

View File

@@ -26,7 +26,7 @@
Margin="0,28,0,0"
Content="{TemplateBinding Header}"
FontSize="18"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
IsVisible="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Header, Converter={x:Static ObjectConverters.IsNotNull}}" />
<Rectangle
Height="1"
@@ -50,7 +50,7 @@
Margin="0,0,0,4"
HorizontalAlignment="{TemplateBinding LabelAlignment}"
Orientation="Horizontal">
<ContentPresenter Content="{TemplateBinding Label}" FontWeight="Bold" />
<ContentPresenter Content="{TemplateBinding Label}" FontWeight="{DynamicResource TextBlockTitleFontWeight}" />
<TextBlock
Foreground="{DynamicResource SemiRed6}"
IsVisible="{TemplateBinding IsRequired}"
@@ -77,7 +77,7 @@
Margin="8,8,8,0"
HorizontalAlignment="{TemplateBinding LabelAlignment}"
Orientation="Horizontal">
<ContentPresenter Content="{TemplateBinding Label}" FontWeight="Bold" />
<ContentPresenter Content="{TemplateBinding Label}" FontWeight="{DynamicResource TextBlockTitleFontWeight}" />
<TextBlock
Foreground="{DynamicResource SemiRed6}"
IsVisible="{TemplateBinding IsRequired}"