fix: remove vertical Padding to fix the actual height of Button & Label.

This commit is contained in:
Zhang Dian
2025-01-19 17:02:14 +08:00
parent e6ff4103ef
commit a0ca9fa4d0
2 changed files with 5 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StaticResource x:Key="ButtonDefaultFontSize" ResourceKey="SemiFontSizeRegular" />
<StaticResource x:Key="ButtonDefaultFontWeight" ResourceKey="SemiFontWeightBold" />
<Thickness x:Key="ButtonDefaultPadding">12 6</Thickness>
<Thickness x:Key="ButtonLargePadding">16 10</Thickness>
<Thickness x:Key="ButtonSmallPadding">6 2</Thickness>
<Thickness x:Key="ButtonDefaultPadding">12 0</Thickness>
<Thickness x:Key="ButtonLargePadding">16 0</Thickness>
<Thickness x:Key="ButtonSmallPadding">6 0</Thickness>
<StaticResource x:Key="ButtonDefaultHeight" ResourceKey="SemiHeightControlDefault" />
<StaticResource x:Key="ButtonSmallHeight" ResourceKey="SemiHeightControlSmall" />
<StaticResource x:Key="ButtonLargeHeight" ResourceKey="SemiHeightControlLarge" />

View File

@@ -1,7 +1,7 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StaticResource x:Key="LabelTagBorderThickness" ResourceKey="SemiBorderThicknessControl" />
<Thickness x:Key="LabelTagSmallPadding">8 2</Thickness>
<Thickness x:Key="LabelTagLargePadding">8 4</Thickness>
<Thickness x:Key="LabelTagSmallPadding">8 0</Thickness>
<Thickness x:Key="LabelTagLargePadding">8 0</Thickness>
<x:Double x:Key="LabelTagSmallHeight">20</x:Double>
<x:Double x:Key="LabelTagLargeHeight">24</x:Double>
<StaticResource x:Key="LabelTagFontSize" ResourceKey="SemiFontSizeSmall" />