feat: make colorpicker dropdown button customizable.

(cherry picked from commit 33f266f48d)
This commit is contained in:
rabbitism
2024-10-18 14:19:32 +08:00
committed by Zhang Dian
parent 53cdfec729
commit 6b72dfabfb
2 changed files with 48 additions and 14 deletions

View File

@@ -52,7 +52,6 @@
<DropDownButton
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
Padding="0,0,10,0"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
ClipToBounds="True"
@@ -474,6 +473,10 @@
</DropDownButton>
</ControlTemplate>
</Setter>
<Style Selector="^ /template/ DropDownButton">
<Setter Property="Padding" Value="0 0 10 0"></Setter>
</Style>
</ControlTheme>
<ControlTheme
@@ -524,7 +527,6 @@
<DropDownButton
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
Padding="0,0,10,0"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
ClipToBounds="True"