Bug 499504 - Selection mask unselected zone color should not adhere to colorspace
Summary: Selection mask unselected zone color should not adhere to colorspace
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Tools/Selection (show other bugs)
Version: 5.2.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-04 13:50 UTC by gbrosset
Modified: 2025-02-04 19:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
A screenshot displaying the issue. (797.19 KB, image/png)
2025-02-04 13:50 UTC, gbrosset
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gbrosset 2025-02-04 13:50:42 UTC
Created attachment 177957 [details]
A screenshot displaying the issue.

SUMMARY
Unselected zones in selection masks adhere to the grayscale colorspace, appearing grey instead of the usual red when it is selected for the current document.
This color adhering to the colorspace is pointless as it is never shown in the final document, and detrimental as it makes unselected space less visible when working with selection masks in grayscale documents (gray on gray).
Additionally, the colorspace is silently selected by Krita when opening a grayscale document, meaning users not aware of this issue will think the selection mask is not working or that they are painting on the actual pixel layer (like I did).

STEPS TO REPRODUCE
1. Open an document with the grayscale colorspace, or set a document's colorspace to grayscale.
2. Create and select any selection mask. 
3. Observe the unselected zones highlighted by the mask. Paint or erase on the mask to see it better.

OBSERVED RESULT
The unselected zones appear gray (and are difficult to see).

EXPECTED RESULT
The unselected zones should appear red, or some other clearly visible color.

SOFTWARE/OS VERSIONS
# kinfo:
Operating System: EndeavourOS 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.10-arch1-1.1-g14 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 15.0 Gio of RAM
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION

Apologies if this is fixed in latest, I haven't updated my AppImage yet and this seems niche enough that I wouldn't expect it to have been found.
Comment 1 Ahab Greybeard 2025-02-04 19:18:16 UTC
I can confirm this for the 5.2.9 appimage.

If the document colour profile is Greyscale and the Display Mode is set to Mask instead of Ants and the selection mask is selected in the Layers Docker, the mask overlay is shown as greyscale instead of the colour that has been selected in the Settings: Display: Canvas Decorations.
If image layers are selected, the mask overlay is shown as the selected colour.

With a document colour profile of RGB, the mask overlay is shown in colour on all layers.

Setting to CONFIRMED.