fix: add default FontWeight to TagLabel.

This commit is contained in:
Zhang Dian
2025-04-14 15:53:56 +08:00
parent cffcaee392
commit 90ef903c22
2 changed files with 2 additions and 0 deletions

View File

@@ -173,6 +173,7 @@
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Padding" Value="{DynamicResource LabelTagSmallPadding}" />
<Setter Property="FontSize" Value="{DynamicResource LabelTagFontSize}" />
<Setter Property="FontWeight" Value="{DynamicResource LabelTagFontWeight}" />
<Setter Property="Template">
<ControlTemplate TargetType="Label">
<ContentPresenter

View File

@@ -5,6 +5,7 @@
<x:Double x:Key="LabelTagSmallHeight">20</x:Double>
<x:Double x:Key="LabelTagLargeHeight">24</x:Double>
<StaticResource x:Key="LabelTagFontSize" ResourceKey="SemiFontSizeSmall" />
<StaticResource x:Key="LabelTagFontWeight" ResourceKey="SemiFontWeightRegular" />
<StaticResource x:Key="LabelTagSquareCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
<StaticResource x:Key="LabelTagCircleCornerRadius" ResourceKey="SemiBorderRadiusFull" />
</ResourceDictionary>