Skip to content

Commit

Permalink
Merge pull request #4408 from Jaex/master
Browse files Browse the repository at this point in the history
fixed #4385: Added color name label to color picker tool
  • Loading branch information
Jaex committed Oct 3, 2019
2 parents 05c6edc + a3573fd commit f438161
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 72 deletions.
17 changes: 17 additions & 0 deletions ShareX.HelpersLib/Forms/ColorPickerForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ShareX.HelpersLib/Forms/ColorPickerForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ private void UpdateControls(MyColor color, ColorType type)
txtDecimal.Text = ColorHelpers.ColorToDecimal(color).ToString();
}

Color knownColor = ColorHelpers.FindClosestKnownColor(color);
lblNameValue.Text = Helpers.GetProperName(knownColor.Name);

controlChangingColor = false;
}

Expand Down

0 comments on commit f438161

Please sign in to comment.