Bug 448941

Summary: Tools Area appearance not used in SSD GTK applications
Product: [Plasma] Breeze Reporter: zocsfxljsgpmiuaanz
Component: gtk themeAssignee: Janet Blackquill <uhhadd>
Status: RESOLVED FIXED    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.23.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.25
Sentry Crash Report:
Attachments: eg. Okular and Atril

Description zocsfxljsgpmiuaanz 2022-01-22 08:20:43 UTC
Created attachment 145742 [details]
eg. Okular and Atril

SUMMARY
Applications using GTK don't have the window decoration and the menu bar of the same color, Qt applications do.

STEPS TO REPRODUCE
1. Apply the Breeze theme to GTK
2. Open a GTK app

OBSERVED RESULT
The colors of the menu bar and the window decoration are not the same.

EXPECTED RESULT
The colors of the menu bar and the window decoration are the same.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This happens using both, Breeze Light and Breeze Dark color schemes and, curiously, the colors of the window decoration and menu bar match when the window is unfocused.
Comment 1 zocsfxljsgpmiuaanz 2022-01-28 04:57:21 UTC
Just wanted to add: this doesn't happen just with Atril. Actually, I tried a lot of GTK applications and all have this problem (except the Gnome ones, obviously, because they don't have separated title and menu bars). There is even an example with Firefox on the official KDE neon webpage (https://neon.kde.org, you must to scroll down a bit).
Comment 2 Nate Graham 2022-05-10 21:12:22 UTC
Git commit 90c9a9d40f298186e1b9072701b3a8383f980d45 by Nate Graham, on behalf of Artem Grinev.
Committed on 10/05/2022 at 21:12.
Pushed by ngraham into branch 'master'.

gtk3,gtk4: Use Header colors for menubars

Applying this to toolbars will require additional research and maybe app-specific
hacks, as GTK uses toolbars for more than just window headers.
Related: bug 449759, bug 445952
FIXED-IN: 5.25

M  +2    -2    src/gtk3/widgets/_menus.scss
M  +2    -2    src/gtk4/widgets/_menus.scss

https://invent.kde.org/plasma/breeze-gtk/commit/90c9a9d40f298186e1b9072701b3a8383f980d45