diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt
index e25f3a342f..7d0d417e86 100644
--- a/.github/actions/spell-check/expect.txt
+++ b/.github/actions/spell-check/expect.txt
@@ -169,6 +169,7 @@ BLURREGION
bmi
bmp
bms
+BNumber
Bokm
BOKMAL
bootstrapper
@@ -794,6 +795,7 @@ githubusercontent
gitignore
globals
gmx
+GNumber
google
GPTR
grayscale
@@ -1820,6 +1822,7 @@ riid
riverar
RKey
RMENU
+RNumber
roadmap
Roboto
roslyn
diff --git a/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml b/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml
index 31be42c401..0c6aa774fa 100644
--- a/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml
+++ b/src/modules/colorPicker/ColorPickerUI/Controls/ColorPickerControl.xaml
@@ -32,7 +32,8 @@
Background="LightPink"
Click="ColorVariationButton_Click"
AutomationProperties.Name="Color shade 1"
- Style="{DynamicResource ColorShadeButtonStyle}"/>
+ Style="{DynamicResource ColorShadeButtonStyle}"
+ ToolTipService.ToolTip="{x:Static p:Resources.Select_color}"/>
+ Style="{DynamicResource ColorShadeButtonStyle}"
+ ToolTipService.ToolTip="{x:Static p:Resources.Select_color}"/>
+ Style="{DynamicResource ColorShadeButtonStyle}"
+ ToolTipService.ToolTip="{x:Static p:Resources.Select_color}"/>
+ Style="{DynamicResource ColorShadeButtonStyle}"
+ ToolTipService.ToolTip="{x:Static p:Resources.Select_color}"/>
+ Style="{DynamicResource ColorShadeButtonStyle}">
+
@@ -202,71 +207,73 @@
-
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
+ VerticalAlignment="Center" />
+
+ VerticalAlignment="Center" />
-
+
+ VerticalAlignment="Center" />
-
+
+ VerticalAlignment="Center" />
+ TextWrapping="Wrap" />
255)
- {
- return;
- }
-
if (!_ignoreRGBChanges)
{
- var r = byte.Parse(RTextBox.Text, CultureInfo.InvariantCulture);
- var g = byte.Parse(GTextBox.Text, CultureInfo.InvariantCulture);
- var b = byte.Parse(BTextBox.Text, CultureInfo.InvariantCulture);
+ var r = byte.Parse(RNumberBox.Text, CultureInfo.InvariantCulture);
+ var g = byte.Parse(GNumberBox.Text, CultureInfo.InvariantCulture);
+ var b = byte.Parse(BNumberBox.Text, CultureInfo.InvariantCulture);
_ignoreRGBChanges = true;
SetColorFromTextBoxes(System.Drawing.Color.FromArgb(r, g, b));
_ignoreRGBChanges = false;
@@ -397,5 +398,10 @@ namespace ColorPicker.Controls
{
return "#" + BitConverter.ToString(new byte[] { color.R, color.G, color.B }).Replace("-", string.Empty, StringComparison.InvariantCulture);
}
+
+ private void HexCode_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
+ {
+ (sender as TextBox).SelectAll();
+ }
}
}
diff --git a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs
index 31a6a07565..43312c8674 100644
--- a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs
+++ b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.Designer.cs
@@ -195,6 +195,15 @@ namespace ColorPicker.Properties {
}
}
+ ///
+ /// Looks up a localized string similar to Select color.
+ ///
+ public static string Select_color {
+ get {
+ return ResourceManager.GetString("Select_color", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Selected color.
///
diff --git a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx
index a0c1b6b156..1fcefffaa4 100644
--- a/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx
+++ b/src/modules/colorPicker/ColorPickerUI/Properties/Resources.resx
@@ -361,4 +361,7 @@
Plum
Plum color
+
+ Select color
+
\ No newline at end of file
diff --git a/src/modules/colorPicker/ColorPickerUI/Resources/Styles.xaml b/src/modules/colorPicker/ColorPickerUI/Resources/Styles.xaml
index a5945dcb0f..f38968d618 100644
--- a/src/modules/colorPicker/ColorPickerUI/Resources/Styles.xaml
+++ b/src/modules/colorPicker/ColorPickerUI/Resources/Styles.xaml
@@ -105,6 +105,7 @@
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Focusable="False"
+ Opacity="0"
RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
@@ -113,12 +114,12 @@
-
+
-
+