Merge pull request #5333 from larsbrubaker/main
fix ui issue with color picker when current color is white
This commit is contained in:
commit
3e05f04679
1 changed files with 7 additions and 1 deletions
|
|
@ -208,7 +208,13 @@ namespace MatterHackers.MatterControl.CustomWidgets.ColorPicker
|
|||
|
||||
hsl.h = colorAngle / MathHelper.Tau;
|
||||
|
||||
Invalidate();
|
||||
if (hsl.s == 0)
|
||||
{
|
||||
hsl.s = .75;
|
||||
hsl.l = .5;
|
||||
}
|
||||
|
||||
Invalidate();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue