[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [krita] [Bug 337133] New: Popup Palette color triangle goes monochrome if any gray selected. Hue res
From:       vanyossi <ghevan () gmail ! com>
Date:       2014-07-06 4:29:57
Message-ID: bug-337133-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=337133

            Bug ID: 337133
           Summary: Popup Palette color triangle goes monochrome if any
                    gray selected. Hue resets to red
    Classification: Unclassified
           Product: krita
           Version: git master
          Platform: unspecified
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: color selectors
          Assignee: krita-bugs-null@kde.org
          Reporter: ghevan@gmail.com

Hi.
I was trying to solve this but it seems it goes beyond my skills.

How to reproduce.



Reproducible: Always

Steps to Reproduce:
In rgb8 color model image (the only tested)
- Open popup palette
- Select any gray color, white or black is also fine.
- Color triangle goes grayscale
- With the triangle in grayscale, select any hue in the hue ring.
Actual Results:  
Color triangle goes colors the selected hue for an instant before going back to
grayscale
Also moving the color circle from the grayscale border to the center makes hue
comeback but in the red hue (hue = 0). which is not desired.

Expected Results:  
Color hue should be remembered.

More info:
As said I tried to find a solution and make a patch. This bug only happens
with:
    KoTriangleColorSelector::KoTriangleColorSelector(const
KoColorDisplayRendererInterface *displayRenderer, QWidget *parent)

Used by the popup color chooser triangle. Any other KotriangleColorSelector
works as expected. (Vector shapes color selections, Color to alpha)

Change introduced in daf452b8fe532b56828940ad01d0746ffd6755af by Dmitry
From my tests it seems paintevent is run until hue is equal to -1. I made a
patch to force remembering the hue, this works avoiding loosing the hue value
but, because hue never gets to -1 the paintevent keeps calling itself to
infinity. To check that I added a counter as well.

Image attached shows the effect in one of those rare glitches in which even the
hue ring goes black and white. The normal behaviour only changes central
triangle.

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic