Bug 428120 - Window decoration buttons in GTK CSD apps are sometimes mis-rendered
Summary: Window decoration buttons in GTK CSD apps are sometimes mis-rendered
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: 5.20.1
Platform: Arch Linux Linux
: VHI normal
Target Milestone: ---
Assignee: Mikhail Zolotukhin
URL: https://gitlab.gnome.org/GNOME/gtk/-/...
Keywords: regression
: 428236 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-23 06:33 UTC by Jacek Jarosz
Modified: 2020-12-02 19:01 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.20.5


Attachments
the weird button behavior ( firefox example ) (13.88 KB, image/png)
2020-10-23 06:33 UTC, Jacek Jarosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Jarosz 2020-10-23 06:33:11 UTC
Created attachment 132652 [details]
the weird button behavior ( firefox example )

SUMMARY

Non-kwin window buttons are not switching correctly / are displayed weirdly in gtk apps 

STEPS TO REPRODUCE
1. Switch to a new gtk theme (I've used Dracula gtk in this example)
2. Restart ( after restarting buttons become very large )
3. Switch back to Adwaita 
OBSERVED RESULT
after restarting buttons become very large

big buttons will stay, but misplaced, and original icons will be overlayed on top of them.

EXPECTED RESULT

theme switching correctly

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.20.1
(available in About System)
KDE Plasma Version: 5.20.1
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2020-10-23 09:36:58 UTC
Possibly a gtk bug https://gitlab.gnome.org/GNOME/gtk/-/issues/3283
Comment 2 Mikhail Zolotukhin 2020-10-23 11:05:58 UTC
I cannot reproduce this bug.
Comment 3 Patrick Silva 2020-10-25 18:37:06 UTC
*** Bug 428236 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2020-10-26 14:55:18 UTC
Definitely seem like https://gitlab.gnome.org/GNOME/gtk/-/issues/3283. Let's see where that goes.
Comment 5 Patrick Silva 2020-11-04 10:51:07 UTC
gtk bug was closed, apparently it's an issue with KDE software:

"Just passed by to mention that is only related to how KDE Plasma deals with the themes, once is used it created inside ~/.config/gtk-3.0/ the following:


assets/ - folder for the buttons to integrate with the Breeze theme

colors.css - to match the colors of the color-scheme used in KDE Plasma

window_decorations.css - to decorate the windows according to Breeze

This 3 need to be removed and keep just:

gtk.css
settings.ini"

https://gitlab.gnome.org/GNOME/gtk/-/issues/3283#note_947113
Comment 6 Mikhail Zolotukhin 2020-11-04 12:14:26 UTC
Deleting the CSS files certainly won't help. They are used to update the appearance of GTK apps. The quote is from Manjaro Forum, where one switched to GNOME and faced the consequences.

Again, I cannot reproduce this bug - for me decorations are updated with no issues.
Comment 7 Patrick Silva 2020-11-04 12:38:15 UTC
On my Arch Linux Breeze gtk theme works as expected, Adwaita is buggy.
Comment 8 Mikhail Zolotukhin 2020-11-04 12:42:05 UTC
If this happens with only one they have, then may be it's somehow related to its internals? I recall Adwaita using Breeze decorations even before the patch with custom CSS landed in Plasma.
Comment 9 Nate Graham 2020-11-04 16:10:58 UTC
I can *sometimes* confirm the issue. But not always. I was seeing it a few days ago, but now it's gone. Seems like it could be some kind of caching issue.
Comment 10 Bug Janitor Service 2020-11-29 00:35:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/17
Comment 11 Jacek Jarosz 2020-12-02 19:01:10 UTC
The problem was fixed for me by removing gtk3.0 config files.