Bug 481084

Summary: Restore down button is dark on flatpak programs that use gtk
Product: [Plasma] Breeze Reporter: kostadinshishmanov
Component: gtk themeAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: agrinev98, cwo.kde, kde, uhhadd
Priority: NOR Keywords: qt6
Version First Reported In: 5.27.8   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of how the button looks when the program is maximized

Description kostadinshishmanov 2024-02-08 20:57:29 UTC
Created attachment 165681 [details]
Example of how the button looks when the program is maximized

SUMMARY

"Restore down" button is darker than the "Minimze" and "Close" buttons on the Dark breeze-gtk when using flatpak programs that use gtk. I've set the version on the bug as 5.27.8 since flatpak says that is the one that is installed.

STEPS TO REPRODUCE
1. Make sure GTK theme is set to breeze in settings and Global style is set to Dark
2. Install a flatpak that uses gtk (for example firefox or lutris)
3. Maximize the program

OBSERVED RESULT

Restore down button is darker than the other buttons

EXPECTED RESULT

Restore down button has the same color as the other buttons

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Comment 1 Radu Avramescu 2024-04-19 09:03:08 UTC
I can confirm that the issue is still present when using flatpak Firefox.

Output of flatpak list | grep -i breeze:
Breeze GTK theme	org.gtk.Gtk3theme.Breeze	6.0.4	3.22	system

SOFTWARE/OS VERSIONS
OS: Fedora 40 beta (KDE spin)
Kernel: 6.8.5-301.fc40.x86_64
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 2 kostadinshishmanov 2024-08-31 21:27:34 UTC
I can't reproduce this anymore. Can anyone else confirm so this can be closed?
Comment 3 Radu Avramescu 2024-09-02 14:22:29 UTC
(In reply to kocelfc from comment #2)
> I can't reproduce this anymore. Can anyone else confirm so this can be
> closed?

Unfortunately, I can still reproduce the issue in the flatpak version of Firefox, from Flathub. I'll list additional information below.

SOFTWARE/OS VERSIONS
Firefox Version: 129.0.2
Breeze GTK theme Version: 6.1.4 (not sure how useful this is, but it's the only flatpak related thing I can find to the Breeze theme)
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 4 cwo 2024-09-18 14:36:43 UTC
Thank you for the bug report! There is another bug report open about miscolored unmaximize buttons for gtk apps; While that bug is technically refrencing light themes, I suspect it is the same issue. That report also seems to contain a workaround that you could try if you are affected by this issue.

*** This bug has been marked as a duplicate of bug 416353 ***
Comment 5 Radu Avramescu 2024-09-29 14:25:48 UTC
(In reply to cwo from comment #4)
> Thank you for the bug report! There is another bug report open about
> miscolored unmaximize buttons for gtk apps; While that bug is technically
> refrencing light themes, I suspect it is the same issue. That report also
> seems to contain a workaround that you could try if you are affected by this
> issue.
> 
> *** This bug has been marked as a duplicate of bug 416353 ***

No problem!

I don't think it's necessarily related to that bug, as I don't have the bug on rpm Firefox, but I do on flatpak Firefox.

There is additional info that I wrote here: https://github.com/flathub/org.gtk.Gtk3theme.Breeze/issues/94#issuecomment-2381320694

There are some similarities to the bug you referenced, but the fix presented there with moving specific CSS lines did not work for me. The 3 fixes in that Github link did, however.