Bug 381177

Summary: Krita doesn't update the color wheel in the selector dialog when manually typing in 8-bit color values
Product: [Applications] krita Reporter: Joshua Kinard <kumba>
Component: Color SelectorsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla, samuka3000
Priority: NOR    
Version First Reported In: 3.1.4   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screencap of the Krita color selector dialog displaying confusing behavior

Description Joshua Kinard 2017-06-14 02:42:33 UTC
Created attachment 106091 [details]
Screencap of the Krita color selector dialog displaying confusing behavior

In addition to the crash I reported in Bug #381176, I also noticed another oddity.  If I open the color selector from the top toolbar and try to manually type in 8-bit RGB values, the color ring will turn all black when I type the third color.

As far as I can tell, it looks like Krita is expecting something closer to 16-bit RGB values, not 8-bit, and as such, it's treating the numbers I input as extremely low 16-bit values, thus showing black.  That's a guess, though.  My other paint/image programs only work with 8-bit RGB values, and there are a few tasks I do in Krita now after giving up on Gimp.

So when I need to do something in Krita using a color, I thought I could just hand-type the 8-bit RGB values in and Krita just rolls with them, but that doesn't seem to be the case?  Thus, it is difficult to determine if this would be a legit bug or not.  But it is, at minimum, confusing behavior.

Additionally, even when I type in the three 8-bit RGB values, the hex #rrggbb field looks wrong.  If Krita only supports 16-bit values, I'd expect the "Color name" field to use a format of #rrrrggggbbbb, but it is instead only displaying the #rrggbb hex format one would expect of 8-bit color values.

If I use the "Specific Color Selector" pane on the right-side of the screen and type my 8-bit RGB values in there, that gets everything right, including the #rrggbb hexadecimal value.  So the issue in this case seems limited to the popup dialog box version of the color selector.

Screenshot attached.
Comment 1 Halla Rempt 2017-09-15 14:12:49 UTC
*** Bug 384744 has been marked as a duplicate of this bug. ***
Comment 2 Halla Rempt 2017-11-23 10:05:05 UTC
I fixed this at the same time as I fixed the initialization of the color dialog.