Bug 502651

Summary: The background of translucent widgets is brighter than SDR white in HDR mode
Product: [Plasma] kwin Reporter: dantmnf <dantmnf2+kdebugs>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, kdedev, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.3.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: HDR with Brightness set to 0

Description dantmnf 2025-04-10 17:28:40 UTC
SUMMARY
Transparency (and fade-in) effects applied to plasma widgets will make them show brighter than configured SDR brightness on HDR display. This is undesired for UI elements, especially when the content (like application icons) is still composited with SDR brightness.

STEPS TO REPRODUCE
1. Enable HDR in Display Configuration
2. Open a window with SDR white for reference
3. Compare brightness of translucent widgets and SDR white

OBSERVED RESULT
The background of translucent widgets is brighter than SDR white

EXPECTED RESULT
The background of translucent widgets is not brighter than SDR white, just like how it works on SDR display.

There is no easy way to capture HDR output from kwin at the moment, therefore no screenshot available.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
Translucent background for regular windows (like konsole) does not have weird brightness.
Comment 1 TraceyC 2025-04-11 16:32:39 UTC
Thanks for the report. Can you provide a link to an SDR white reference image, or let us know what window you're referring to by "Open a window with SDR white for reference"?

Also, can you let us know a widget you experienced this with?

Thanks.
Comment 2 dantmnf 2025-04-11 17:38:07 UTC
SDR white means color (255, 255, 255) in SDR content, such as css color "white" in web browser.

In my case, I experienced this with the default bottom panel and it's popups.
Comment 3 TraceyC 2025-04-15 14:08:51 UTC
I'm not able to reproduce this on git-master with the Breeze theme on an HDR display
I used a rectangle filled with 255,255,255 white in mtPaint, as well as a web browser open to a page with white elements as reference and then opened the App Menu next to them. There was no difference in the brightness between the color swatch and the menu search bar when they were

Can you share a screenshot of your Display Configuration setting page for the display?
Can you also share a screenshot of your settings for the Translucency desktop effect?

Thanks
Comment 4 dantmnf 2025-04-15 14:29:37 UTC
Created attachment 180292 [details]
HDR with Brightness set to 0

Further investigation shows this issue happens when the Brightness setting in Display Configuration is not 100, setting Brightness to 0 will get an extreme case.

The Translucency effect is not enabled, disabling the Blur effect doesn't help either.
Comment 5 TraceyC 2025-04-15 17:20:58 UTC
Thanks for that screenshot, it's very helpful

I re-tested on a different system running git-master connected to an HDR monitor and I'm still not able to reproduce it. I do notice a slight difference in how the menu is shown, regarding blur (with transparency disabled in the desktop effects; I tried with blur on and blur off)
This could be a difference in Qt (my systems have 6.8.3) or tweaks made by the distribution (I have Solus)

What distribution is this system running?
Comment 6 dantmnf 2025-04-15 18:17:44 UTC
I experienced this on 2 Arch Linux systems, with slightly different config. 

I will test on Fedora live system later.
Comment 7 dantmnf 2025-04-16 01:51:51 UTC
Also reproduced on Fedora 42, with Plasma 6.3.4/KF 6.12.0/Qt 6.8.2, using live system default settings except Plasma theme changed to Breeze Light.
Comment 8 TraceyC 2025-04-16 15:41:22 UTC
Thanks for adding that. I'll let the maintainers who are more experienced with HDR / SDR take it from here.
Comment 9 Zamundaaa 2025-04-16 16:01:43 UTC
Can confirm; specifically the contrast effect is causing this.