From 9fe34158e441dc4f6c74391baeaafd2537648130 Mon Sep 17 00:00:00 2001 From: robloo Date: Thu, 15 Aug 2024 02:48:15 -0400 Subject: [PATCH] ColorPicker Simple Theme Fixes (#16654) * Disable vertical scrolling in Simple theme NumericUpDown * Improve color picker simple themes * VerticalContentAlignment --------- Co-authored-by: Max Katz --- .../Themes/Simple/ColorPicker.xaml | 11 ++++++++--- .../Themes/Simple/ColorView.xaml | 11 ++++++++--- .../Controls/NumericUpDown.xaml | 3 +++ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml index 102d208ed1..c2535086fa 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml @@ -103,7 +103,8 @@ - + @@ -168,7 +169,8 @@ - + @@ -203,7 +205,8 @@ - + @@ -264,6 +267,8 @@ AutomationProperties.Name="Hexadecimal Color" Height="32" MaxLength="9" + Padding="10,6,6,5" + VerticalContentAlignment="Center" HorizontalAlignment="Stretch" CornerRadius="0,0,0,0" /> diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml index 725c94b10f..942d4e5a03 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml @@ -306,7 +306,8 @@ - + @@ -371,7 +372,8 @@ - + @@ -406,7 +408,8 @@ - + @@ -467,6 +470,8 @@ AutomationProperties.Name="Hexadecimal Color" Height="32" MaxLength="9" + Padding="10,6,6,5" + VerticalContentAlignment="Center" HorizontalAlignment="Stretch" CornerRadius="0,0,0,0" /> diff --git a/src/Avalonia.Themes.Simple/Controls/NumericUpDown.xaml b/src/Avalonia.Themes.Simple/Controls/NumericUpDown.xaml index 83db5ca98a..78510f6557 100644 --- a/src/Avalonia.Themes.Simple/Controls/NumericUpDown.xaml +++ b/src/Avalonia.Themes.Simple/Controls/NumericUpDown.xaml @@ -14,6 +14,8 @@ HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsTabStop="False" + Padding="0" + MinWidth="0" AllowSpin="{TemplateBinding AllowSpin}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" @@ -25,6 +27,7 @@ MinWidth="20" Margin="4" Padding="{TemplateBinding Padding}" + ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" AcceptsReturn="False"