Bug 490724 - Window and menu panel shadows render differently when a color profile is applied
Summary: Window and menu panel shadows render differently when a color profile is applied
Status: RESOLVED DUPLICATE of bug 476868
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 6.1.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 18:26 UTC by 179
Modified: 2024-07-25 11:25 UTC (History)
2 users (show)

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


Attachments
Color profile changing context menu shadows (117.08 KB, image/png)
2024-07-23 18:26 UTC, 179
Details
Window between Monitors with/without ICC profile (36.66 KB, image/png)
2024-07-23 18:27 UTC, 179
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 179 2024-07-23 18:26:08 UTC
Created attachment 171936 [details]
Color profile changing context menu shadows

SUMMARY
When having a color profile applied, either by using a monitor's built-in profile or an external ICC profile, window and panel shadows (menu panels like context menus, that is) render quite differently. The shadows render less smoothly and appear far stronger than they do without a profile set. This is nearly unnoticeable with e.g. a pure black shadow using Breeze Light, but gets increasingly obvious when using a brighter shadow with a darker color scheme.


STEPS TO REPRODUCE
1. Set the color theme to a dark theme like Breeze Dark.
2. In "Colors & Themes" → "Window Decorations" → "Pencil" → "Shadows and Outline", set the shadow to something bright like #ffffff with a decent size and intensity.
3. In "Display Configuration", set your monitor to use a color profile. Either type works. Even not supplying a profile when picking "ICC Profile" causes the bug to occur for me.
 

OBSERVED RESULT
Windows and various panels like the Dolphin context menu have much stronger shadows that look kind of rough. Basically, any panel or window that uses shadows set in above settings is affected. 


EXPECTED RESULT
Window and panel shadows are unaffected by the ICC profile beyond the color.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 7600
Mesa Version: 24.1.4


ADDITIONAL INFORMATION
I have reproduced this with both of my displays with both methods of applying a color profile.
If I put a window between one monitor without a profile and one with an active profile, the shadow appearance is cleanly split. In other words, I will be looking at a window with two visually distinct renders of the same window shadow.

I have attached two images:
The first image compares the Dolphin context menu "with ICC" and "without ICC" using Breeze Dark and window decorations shadows of "Large, 50%, #ffffff". Interestingly, the context menu without a set ICC profile appears more grainy, while the one with a profile does not, although I can't say how this is related to the bug.

The second image in the followup comment is me (on a #000000 wallpaper) placing a window between a monitor with a set profile (left) and one without a set profile (right) and then taking a "Rectangular Region" screenshot of it.
Comment 1 179 2024-07-23 18:27:05 UTC
Created attachment 171937 [details]
Window between Monitors with/without ICC profile
Comment 2 Nate Graham 2024-07-24 19:01:06 UTC
Is there any reason to suspect this isn't simply the result of the color profile doing what it's supposed to — affect the colors on the screen?

(black and white are colors too, from this perspective)
Comment 3 179 2024-07-25 06:10:53 UTC
(In reply to Nate Graham from comment #2)
> Is there any reason to suspect this isn't simply the result of the color
> profile doing what it's supposed to — affect the colors on the screen?
> 
> (black and white are colors too, from this perspective)

Maybe — I only tested two profiles for my primary monitor as well as the built-in profiles for both of my monitors. All caused the shadows to look like that, in the exact same way. Even just selecting "ICC Profile", not supplying one and clicking "Apply" caused the shadows to change in the exact same way for me, which doesn't point towards any particular profile itself just looking like that.

That being said,  I am not at all familiar with how these profiles work and what they all can do, so you could have a point. I just thought the way the shadows faded with a profile applied looked a little too weird, like they do not fully fade. In both of my screenshots (very clear in the second), you can see the "border" of the window shadow which is normally something you shouldn't see.
Comment 4 Zamundaaa 2024-07-25 11:25:49 UTC

*** This bug has been marked as a duplicate of bug 476868 ***