flathub / org.gtk.Gtk3theme.Breeze

19 stars 6 forks source link

Strange coloration in Chromium based browsers... IE Brave, Chromium #94

Open mrust1219 opened 1 year ago

mrust1219 commented 1 year ago

I am using Fedora Kinoite and after having set flatpak override --user --filesystem=xdg-config/gtk-3.0:ro to enable dark mode, the buttons are colored way too dark.

This does not occur in Firefox flatpak. It seems specific to chromium based browsers.

Screenshot_20230315_120912

Is there a way to fix this for dark mode? I don't like using the system title bars for my browsers because it seems like a waste of screen real estate. I am glad that I am actually able to make the title bar dark, but sometimes it is difficult to see the buttons.

mrust1219 commented 1 year ago

It also appears that the buttons turn a lighter color when the window is not in focus.

vulongm commented 1 year ago

Adding the line @import 'window_decorations.css'; to the file at ~/.config/gtk-3.0/gtk.css seems to fix the issue. Although there is a downside where if you use non-KDE environment like GNOME it may result in the buttons looking buggy.

mrust1219 commented 1 year ago

Adding the line @import 'window_decorations.css'; to the file at ~/.config/gtk-3.0/gtk.css seems to fix the issue. Although there is a downside where if you use non-KDE environment like GNOME it may result in the buttons looking buggy.

Hey this worked like a charm. Thank you for this. This should be added to the workarounds as well.

xalt7x commented 5 months ago

This does not occur in Firefox flatpak. It seems specific to chromium based browsers.

I have a similar issue with Firefox Flatpak (Maximized window when "Breeze Dark" is selected as a Global Theme for KDE Plasma).

Screenshot_20240205_014937

https://github.com/flathub/org.gtk.Gtk3theme.Breeze/issues/94#issuecomment-1499858638 fixes it.


Alternatively workaround (completely unrelated to this package) is to copy and use system theme:

mkdir -p ~/.themes
cp -r /usr/share/themes/{Breeze,Breeze-Dark} ~/.themes
flatpak override --user --filesystem=home/.themes:ro org.mozilla.firefox
mrust1219 commented 5 months ago

What is the course of action for having an out of the box solution for this on Plasma, like Gnome has? It would be nice to not have to do this workaround for Plasma tbh.