From dce95a32129490ec8d9290ed2a987cb3590908b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Wed, 17 Aug 2022 11:35:47 +0200 Subject: [PATCH] Fix --- src/ThemeEditor.Controls.ColorPicker/ColorPicker.axaml | 2 +- src/ThemeEditor.Controls.ColorPicker/ColorPicker.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ThemeEditor.Controls.ColorPicker/ColorPicker.axaml b/src/ThemeEditor.Controls.ColorPicker/ColorPicker.axaml index 1477557..87a61b4 100644 --- a/src/ThemeEditor.Controls.ColorPicker/ColorPicker.axaml +++ b/src/ThemeEditor.Controls.ColorPicker/ColorPicker.axaml @@ -225,7 +225,7 @@ - + diff --git a/src/ThemeEditor.Controls.ColorPicker/ColorPicker.cs b/src/ThemeEditor.Controls.ColorPicker/ColorPicker.cs index 58bb6b3..7ec3d06 100644 --- a/src/ThemeEditor.Controls.ColorPicker/ColorPicker.cs +++ b/src/ThemeEditor.Controls.ColorPicker/ColorPicker.cs @@ -1,4 +1,5 @@ using System; +using System.Globalization; using System.Reactive.Disposables; using Avalonia; using Avalonia.Collections; @@ -12,6 +13,8 @@ namespace ThemeEditor.Controls.ColorPicker; public class ColorPicker : TemplatedControl { + public static readonly NumberFormatInfo NumberFormat = new CultureInfo("en-US").NumberFormat; + public static readonly StyledProperty ColorProperty = AvaloniaProperty.Register(nameof(Color));