Bug 426670

Summary: Buttons to close, maximize and minimize windows are very small in gtk apps with CSDs
Product: [Plasma] Breeze Reporter: Lucia Mrenica <lucia.mrenica>
Component: gtk themeAssignee: Janet Blackquill <uhhadd>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lucia.mrenica, mail, nate, zrenfire
Priority: NOR    
Version First Reported In: 5.19.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://github.com/Zren/material-decoration/issues/22
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot

Description Lucia Mrenica 2020-09-18 06:33:15 UTC
SOFTWARE/OS VERSIONS
KDE Frameworks Version: 5.74
Qt Version: 5.15.1
Comment 1 Lucia Mrenica 2020-09-18 06:34:42 UTC
Created attachment 131743 [details]
Screenshot

This is from Firefox but GTK3-demo has the same issue.
Comment 2 Lucia Mrenica 2020-09-18 06:37:10 UTC
This might be related: https://bugs.kde.org/show_bug.cgi?id=426669
Comment 3 Nate Graham 2020-09-18 21:16:04 UTC
Are these flatpak apps, nor from your distro?
Comment 4 Nate Graham 2020-09-18 22:34:13 UTC
Also those aren't Breeze window decorations. Are you using the Adwaita GTK3 theme, or the Breeze GTK theme with a non-Breeze window decoration theme?
Comment 5 Lucia Mrenica 2020-09-19 08:18:06 UTC
You're right those aren't Breeze decorations, and Breeze does work correctly. These are from https://github.com/Zren/material-decoration. Should I report there?
Comment 6 Chris Holland 2020-09-19 14:40:35 UTC
Sorry, my material-decoration wasn't scaling the icons by the button geometry. It probably wasn't scaling for HiDPI either.

I am running into an issue however. Is there a cache for the icons generated to ~/.config/gtk-3.0/assets/?

https://github.com/Zren/material-decoration/issues/22#issuecomment-695220800
Comment 7 Mikhail Zolotukhin 2020-09-19 16:53:37 UTC
I assume the decorations are tiny, because we do not sync the geometry of the buttons with GTK CSD.

*** This bug has been marked as a duplicate of bug 426074 ***
Comment 8 Chris Holland 2020-09-19 20:16:54 UTC
Incorrect Mikhail. I was using a hardcoded 10x10 icon in material-decoration. I managed to fix material-decoration to scale the icons. However I couldn't easily test as whatever process that generates the svg assets still had the older library loaded in memory.

/usr/lib/qt/plugins/org.kde.kdecoration2/materialdecoration.so

After rebooting, I was able to view my changes to material-decoration.

https://user-images.githubusercontent.com/416367/93687885-7f3a0e80-fa8f-11ea-9f0b-1b0801480aeb.png

It appears the kded5 process needs to be restarted to test changes to materialdecoration.so.