Bug 473006 - [Win 11 with ACM] Brush cursor has a visible box with sRGB color when hovering over WCG color
Summary: [Win 11 with ACM] Brush cursor has a visible box with sRGB color when hoverin...
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-04 16:43 UTC by Kampidh
Modified: 2023-08-04 16:46 UTC (History)
0 users

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


Attachments
brush cursor in W11 with ACM (3.37 MB, video/mp4)
2023-08-04 16:43 UTC, Kampidh
Details
simple test image used in the video (10.44 KB, image/png)
2023-08-04 16:46 UTC, Kampidh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kampidh 2023-08-04 16:43:36 UTC
Created attachment 160741 [details]
brush cursor in W11 with ACM

Tested with Krita 5.2.0-beta1 (git cb64ff8)

Sort of preliminary testing with Windows 11 new "Auto Color Management" mode (as discussed in https://phabricator.kde.org/T16449). I tried to use 16-bit linear Rec. 709 output format on Krita and it works good, set the Krita display profile to 'scRGB' as well but it seems that display profile is ignored here (which is indeed an expected / correct behavior, IIRC?).

During the test, I found out that the brush cursor had a box around it that rendered in sRGB instead, this effect is more prominent when hovering over the wide gamut colors, like seen in attached video. However, only the brush tool that is affected, even with the brush outline set to none. Other tools are behaved normally. I also tested with Krita 5.1.5 and it also have this behavior.

Additional info: the monitor I'm using is LG 27GL850 (98% DCI-P3, 10 bit input), in non-HDR -- WCG only mode (HDR purposely disabled in EDID just to test this ACM feature).

STEPS TO REPRODUCE
1. Enable ACM in Windows 11 (preferably using WCG monitor with well-calibrated MHC2 profile)
2. Set Krita Preferred Output Format to Rec. 709 Linear (16 bit)
3. Create / open a WCG document
4. Select Freehand Brush Tool and try to hover over the WCG colors

OBSERVED RESULT
There's a box surrounding the brush cursor that have the color rendered in sRGB instead

EXPECTED RESULT
Should be no box there / the box color should be rendered in WCG

SOFTWARE/OS VERSIONS
Windows: Win 11, 22H2 build 22621.2070
Qt Version: 5.15.7
Comment 1 Kampidh 2023-08-04 16:46:12 UTC
Created attachment 160742 [details]
simple test image used in the video