[KDE] Abnormal window button hover UI on dark theme without title bar
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: i, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
image/png
|
Details |
(This was initially Comment 5 of Bug 1714126)
Styling information:
[Parent 181086: Main Thread]: D/LookAndFeel nsLookAndFeel::EnsureInit
[Parent 181086: Main Thread]: D/LookAndFeel toggling gtk-application-prefer-dark-theme
[Parent 181086: Main Thread]: D/LookAndFeel System Theme: Breeze. Alt Theme: Adwaita Dark
Versions:
- KDE Plasma: 5.22.0
- KDE Frameworks: 5.83.0
- Qt: 5.15.2
- Firefox: 2021-06-13 with "title bar" off
It seems to be a regression from the fix for Bug 1707872 [1].
Assignee | ||
Comment 1•3 years ago
|
||
The regression window seems a bit surprising, but will try to repro, I suspect I was missing the "titlebar off" bit. Are you using X11 or Wayland?
Updated•3 years ago
|
(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
Are you using X11 or Wayland?
I'm using X11. Also - if it matters - I've set "ui.systemUsesDarkTheme" to 1.
Assignee | ||
Comment 3•3 years ago
|
||
Great, I can repro now, thank you!
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Ok, so here's what's going on... I think it is fair to consider this a KDE bug:
- When you set the global theme to "Breeze" via the KDE system settings, they create a
~/.config/gtk-3.0/window_decorations.css
file (here). - They also load an extension to watch for file changes to that etc (here), which is what takes care of applying the style, ultimately.
But then Firefox (since bug 1707872) when you have a dark Firefox theme, tries to override that theme to "Adwaita Dark" (so that there's proper contrast etc). However that gtk module doesn't watch for theme changes and thus it fails to remove the Breeze-specific CSS, causing this ugly styling...
I think it should be only fair to fix the KDE module to at the very least deal with theme changes to non-Breeze themes. I'll look into that, but if someone wants to go ahead before me, then please be my guest :)
Assignee | ||
Comment 5•3 years ago
|
||
Another possible fix (which would be really cool) would be to, ideally, create a dark variant of the "Breeze" theme. Then Firefox wouldn't fall back to "Adwaita Dark".
Assignee | ||
Comment 6•3 years ago
|
||
Something I did try (but that unfortunately doesn't work) is to unload the GTK module when switching themes. But there's no cleanup function which would remove the CSS provider, so that doesn't cut it.
Assignee | ||
Comment 7•3 years ago
|
||
I'll give a shot at sending a patch upstream.
Assignee | ||
Comment 8•3 years ago
|
||
Assignee | ||
Comment 9•3 years ago
|
||
Let's resolve this as moved as it should be fixed by https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/31, and there's not much we can do here to work around it.
Description
•