Bug 389560

Summary: Layer color (right click menu)
Product: [Applications] krita Reporter: lou
Component: Layer StackAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: raghu
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshots

Description lou 2018-01-28 17:46:43 UTC
Created attachment 110182 [details]
screenshots

(much ado about nothing:) 

When I say layer color I mean when you right click on a layer, there's those colors near the top of the right click menu. Not sure what else to call them?


>I can't reproduce this right now, but I somehow had it so that the color of a layer was inconsistent with it's displayed color.
>My original summary to elaborate on was "layer inherits parent/above(in order) layer color setting while not actually having said color". The closest I got to reproducing: .

... Well I was about to go on a longer ramble but this seems to be a UI update/rendering issue and not something to do with incorrectly setting the layer data. It happens *across* open documents.

The screenshots in the attachment:
00.png shows the clean state with freshly opened krita and one uncolored layer
01.png shows that after setting the color of Layer 1 to red, right clicking the uncolored Layer 2 shows both the red and the X selected.

Opening a new document will show the previous selection from the previous document, in the same fashion. Moving the mouse over any of the colors will change the "mouseover highlighted/outlined" selection, and moving the mouse away will result in the outline for the erroneously highlighted square to disappear.
Comment 1 Raghavendra kamath 2018-02-03 19:30:58 UTC
+1 can reproduce this

This is just a UI misfeature. The [X] icon doesn;t loose its slected state when you go to apple color second time on a some other layer.
Comment 2 Sven Langkamp 2018-02-04 08:16:57 UTC
Git commit 5ad5f2ea0b55717fcfc70d20a04345e5fc93c52e by Sven Langkamp.
Committed on 04/02/2018 at 08:13.
Pushed by langkamp into branch 'master'.

When setting the current index in the KisColorLabelSelectorWidget the hovered item should be the same item. Otherwise the hovered item can show up in the wrong position after showing the menu.

M  +1    -0    libs/ui/widgets/kis_color_label_selector_widget.cpp

https://commits.kde.org/krita/5ad5f2ea0b55717fcfc70d20a04345e5fc93c52e