fix: fix ButtonGroup Height & Padding issue.

This commit is contained in:
Zhang Dian
2025-03-27 15:41:57 +08:00
parent adf46e3949
commit 9978ad416f
4 changed files with 46 additions and 27 deletions

View File

@@ -1,10 +1,13 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Add Resources Here -->
<x:Double x:Key="ButtonGroupDefaultFontSize">14</x:Double>
<FontWeight x:Key="ButtonGroupDefaultFontWeight">600</FontWeight>
<CornerRadius x:Key="ButtonGroupCornerRadius">3</CornerRadius>
<Thickness x:Key="ButtonGroupDefaultPadding">12 6</Thickness>
<Thickness x:Key="ButtonGroupLargePadding">16 10</Thickness>
<Thickness x:Key="ButtonGroupSmallPadding">6 2</Thickness>
</ResourceDictionary>
<x:Double x:Key="ButtonGroupSeparatorHeight">20</x:Double>
<Thickness x:Key="ButtonGroupDefaultPadding">12 0</Thickness>
<Thickness x:Key="ButtonGroupLargePadding">16 0</Thickness>
<Thickness x:Key="ButtonGroupSmallPadding">12 0</Thickness>
<x:Double x:Key="ButtonGroupDefaultMinHeight">32</x:Double>
<x:Double x:Key="ButtonGroupLargeMinHeight">40</x:Double>
<x:Double x:Key="ButtonGroupSmallMinHeight">24</x:Double>
</ResourceDictionary>