Bug 454149 - Breeze buttons on Lock screen and Logout screen do not properly inherit color scheme after changing it -- clearing the SVG cache manually fixes it
Summary: Breeze buttons on Lock screen and Logout screen do not properly inherit color...
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasma (show other bugs)
Version: 5.94.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-21 13:00 UTC by doncbugs
Modified: 2023-12-13 10:15 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Scheme to Dark, but only center of button is dark (485.13 KB, image/png)
2022-05-21 13:00 UTC, doncbugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description doncbugs 2022-05-21 13:00:27 UTC
Created attachment 149069 [details]
Scheme to Dark, but only center of button is dark

SUMMARY
Unsure if this is a cache problem. When the color compatible Breeze plasma style is equipped and the color scheme is set to [Breeze] dark, much of the button on the logout remain white. Tested with Breeze and Willow Spectrum. On Breeze, the center of the buttons are dark, but the frame is white. On Willow, the center of the button is also white.


STEPS TO REPRODUCE
1. Set plasma style to Breeze
2. Set color scheme to Breeze Dark
3. Trigger the logout screen (e.g. open kickoff and press shut down)

OBSERVED RESULT
Only the center of the button appears to become Breeze Dark's color. The frame remains white as though it were set to Breeze Light.

EXPECTED RESULT
The entire button should follow Breeze Dark's color scheme.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Testing Edition
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.13.0-41-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
I have observed this behavior for at least a few months back.
Comment 1 Nate Graham 2022-05-23 18:17:23 UTC
Does it fix itself if you clear the Plasma SVG cache with `rm ~/.cache/*plasma* ; plasmashell --replace`?
Comment 2 doncbugs 2022-05-25 00:05:13 UTC
(In reply to Nate Graham from comment #1)
> Does it fix itself if you clear the Plasma SVG cache with `rm
> ~/.cache/*plasma* ; plasmashell --replace`?

Indeed it seems to.

What's odd is the consistency of it. This feels like when a color compatible Plasma theme wouldn't update when you changed the color scheme until you reapplied the Plasma theme.
Comment 3 Nate Graham 2022-05-25 14:52:15 UTC
Thanks. Is it really just these buttons? Can you reproduce the issue with any other raised buttons in Plasma? E.g. in the panel edit mode toolbar, or the "Enable" button in the Bluetooth applet when Bluetooth is disabled? I'm wondering if it's a general issue with raised buttons in Plasma.
Comment 4 doncbugs 2022-05-27 17:00:41 UTC
I just it again and remembered that the other time I see this bug is on the lock screen. I think it's a dialog.svg or background.svg. When I start my PC, it shows the notification at the bottom that my HDMI audio is connected. Occasionally, I see this as checkered between light and dark colors. If this makes sense, I believe it has to do with what's drawing the assets. Maybe panels are set properly, but the logout or lockscreen may not be getting up-to-date assets.

My second thought might need an investigation into the criteria for redrawing things based on the contents of color schemes. Previously, when applying color schemes that were partially adaptive (like Breeze Dark and Breeze Light before we unintentionally hard-coded it for a few updates), they would not update properly until you reapplied the plasma theme. I do not know how we fixed that, but perhaps the logout and the background.svg on the lockscreen were not part of it.
Comment 5 Nate Graham 2022-06-01 16:04:05 UTC
OK, so lock screen and logout screen. Thanks.

Cannot reproduce in either the X11 or the Wayland session when switching color schemes between Breeze Light and Breeze Dark while the Breeze Plasma theme is active.
Comment 6 doncbugs 2022-06-02 00:57:13 UTC
(In reply to Nate Graham from comment #5)
> OK, so lock screen and logout screen. Thanks.
> 
> Cannot reproduce in either the X11 or the Wayland session when switching
> color schemes between Breeze Light and Breeze Dark while the Breeze Plasma
> theme is active.

So I noticed something interesting. I switched to Breeze, while the light theme was enabled. Checked the logout, did not see the bug (obviously, I suppose?), switched to dark, and then saw the bug. Then I cleared the cache and could not seem to reproduce it. i.e. it seems to not be stuck on the same version of svgs that were colored with the theme.  However, I then switched to another color compatible theme (Willow) and then switched to another color scheme. The bug appeared again. Clearing the cache fixes it. I switched back to Breeze and inverted it again, and the bug appeared again. Could this mean that the bug occurs when switching between sets of cached assets and it is getting stuck on an older set?
Comment 7 Nate Graham 2022-06-02 14:36:48 UTC
Probably. The cache logic is quite buggy.
Comment 8 Marco Martin 2023-12-13 10:15:25 UTC
fixed in plasma6 after a cache mechanism rework