Merge pull request #5333 from larsbrubaker/main

fix ui issue with color picker when current color is white
This commit is contained in:
Lars Brubaker 2022-05-19 17:33:20 -07:00 committed by GitHub
commit 3e05f04679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
{