From f071454c54f13eada002c65e8eb038d781268997 Mon Sep 17 00:00:00 2001 From: VladiStep Date: Thu, 4 May 2023 19:31:16 +0300 Subject: [PATCH] Improve the color picker hint. --- UndertaleModTool/Controls/ColorPicker.xaml.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UndertaleModTool/Controls/ColorPicker.xaml.cs b/UndertaleModTool/Controls/ColorPicker.xaml.cs index bbaa5d9ad..2cfd330b0 100644 --- a/UndertaleModTool/Controls/ColorPicker.xaml.cs +++ b/UndertaleModTool/Controls/ColorPicker.xaml.cs @@ -59,7 +59,8 @@ public ColorPicker() ColorText.SetBinding(TextBox.TextProperty, binding); ColorText.MaxLength = HasAlpha ? 9 : 7; - ColorText.ToolTip = $"{(HasAlpha ? "A, " : "")}B, G, R"; + ColorText.ToolTip = $"#{(HasAlpha ? "AA" : "")}BBGGRR"; + ToolTipService.SetInitialShowDelay(ColorText, 250); } private static void OnHasAlphaChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) @@ -77,7 +78,7 @@ private static void OnHasAlphaChanged(DependencyObject dependencyObject, Depende colorPicker.ColorText.SetBinding(TextBox.TextProperty, binding); colorPicker.ColorText.MaxLength = hasAlpha ? 9 : 7; - colorPicker.ColorText.ToolTip = $"{(hasAlpha ? "A, " : "")}B, G, R"; + colorPicker.ColorText.ToolTip = $"#{(hasAlpha ? "AA" : "")}BBGGRR"; } }