From a8aa64b4c0ad193c963955603c0bb6514ecd0035 Mon Sep 17 00:00:00 2001 From: robloo Date: Wed, 25 Jan 2023 22:00:08 -0500 Subject: [PATCH] Fix handling of full-length hex values with '#' symbol in ColorPicker This allows pasting i.e. '#FFFFFFFF' in the hex input text box --- .../Themes/Fluent/ColorPicker.xaml | 3 ++- src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml | 3 ++- .../Themes/Simple/ColorPicker.xaml | 3 ++- src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPicker.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPicker.xaml index 2ccf20d460..8f52b059f1 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPicker.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPicker.xaml @@ -245,11 +245,12 @@ VerticalAlignment="Center" /> + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml index 286ca71bc2..fab5415bfb 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml @@ -494,11 +494,12 @@ VerticalAlignment="Center" /> + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml index b82d36a288..d44902dd70 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml @@ -245,11 +245,12 @@ VerticalAlignment="Center" /> + diff --git a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml index 556099f56b..0ce6dd5e04 100644 --- a/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml +++ b/src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml @@ -456,11 +456,12 @@ VerticalAlignment="Center" /> +