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

@@ -43,7 +43,7 @@
ContentTemplate="{TemplateBinding HeaderTemplate}"
IsVisible="{TemplateBinding Header,
Converter={x:Static ObjectConverters.IsNotNull}}"
TextElement.FontWeight="600" />
TextElement.FontWeight="{DynamicResource TextBlockTitleFontWeight}" />
<ContentPresenter
Grid.Row="1"
Grid.Column="1"

View File

@@ -70,7 +70,7 @@
</Style>
<Style Selector="^ /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontWeight" Value="{DynamicResource TextBlockTitleFontWeight}" />
</Style>
<Style Selector="^ /template/ ContentPresenter#Separator">
<Setter Property="IsVisible" Value="False" />

View File

@@ -190,7 +190,7 @@
Margin="0,24,0,0"
VerticalAlignment="Center"
FontSize="16"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
IsHitTestVisible="False"
IsVisible="{TemplateBinding Title,
Converter={x:Static ObjectConverters.IsNotNull}}"
@@ -490,7 +490,7 @@
Grid.Column="0"
Margin="24,24,0,0"
FontSize="14"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
Text="{TemplateBinding Title}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap" />
@@ -563,7 +563,7 @@
Margin="0,24,0,0"
VerticalAlignment="Center"
FontSize="16"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
IsHitTestVisible="False"
IsVisible="{TemplateBinding Title,
Converter={x:Static ObjectConverters.IsNotNull}}"

View File

@@ -96,7 +96,7 @@
Margin="24,24,0,0"
VerticalAlignment="Center"
FontSize="16"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
IsHitTestVisible="False"
IsVisible="{TemplateBinding Title,
Converter={x:Static ObjectConverters.IsNotNull}}"

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}"

View File

@@ -51,7 +51,7 @@
Grid.Column="1"
VerticalAlignment="Center"
FontSize="16"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
IsHitTestVisible="False"
Text="{TemplateBinding Title}"
TextTrimming="CharacterEllipsis"
@@ -184,7 +184,7 @@
Margin="0,24,0,0"
VerticalAlignment="Center"
FontSize="16"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
IsHitTestVisible="False"
Text="{TemplateBinding Title}"
TextTrimming="CharacterEllipsis"

View File

@@ -126,7 +126,7 @@
<Style Selector="^:selected">
<Setter Property="Background" Value="{DynamicResource PaginationButtonSelectedBackground}" />
<Setter Property="Foreground" Value="{DynamicResource PaginationButtonSelectedForeground}" />
<Setter Property="FontWeight" Value="600" />
<Setter Property="FontWeight" Value="{DynamicResource TextBlockTitleFontWeight}" />
</Style>
</ControlTheme>

View File

@@ -55,7 +55,7 @@
</ControlTemplate>
</Setter>
<Style Selector="^:selected">
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontWeight" Value="{DynamicResource TextBlockTitleFontWeight}" />
</Style>
</ControlTheme>
</ResourceDictionary>

View File

@@ -119,14 +119,14 @@
Grid.Column="0"
Margin="0,16"
HorizontalAlignment="Center"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
Text="{DynamicResource STRING_DATE_TIME_START_TIME}" />
<TextBlock
Grid.Row="0"
Grid.Column="2"
Margin="0,16"
HorizontalAlignment="Center"
FontWeight="Bold"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
Text="{DynamicResource STRING_DATE_TIME_END_TIME}" />
<Rectangle
Grid.Row="1"