Closed Bvngee closed 11 months ago
As for the gtk.css
and gtk-dark.css
css files - In the light theme gtk-dark.css
is just for allowing individual apps to use the dark theme. In the dark theme both files use the dark style.
You can always create ~/.config/gtk-3.0/gtk.css
with named variables and then programmatically with a shell script change color values depending on what you want to do. But you can't switch themes live with those config files, you'll need to restart apps or relog.
Prerequisites
Checklist to make sure the issue is not on your end
~/.local/share/themes
or/usr/share/themes
or~/.themes
~/.config/gtk-3.0/gtk.css
does not exist. (If it does, backup and remove it.)gnome-tweaks
AND set the appearance to dark ingnome-control-center
org.gtk.Gtk3theme.adw-gtk3
andorg.gtk.Gtk3theme.adw-gtk3-dark
Description
This is most likely not and issue, but rather questions that I have that I cannot seem to find concrete answers to online. I apologize in advance if this is the wrong place to ask.
Firstly: Why does there need to be two separate themes for light and dark mode (adw-gtk3-dark and adw-gtk3) while each theme ALSO has a
gtk.css
and agtk-dark.css
? I notice that this seems to be a common trait among other GTK themes as well. While try to figure out how to hot-switch running GTK applications between light and dark mode, this has become a large point of confusion for me. I currently run this:which seems to work for running GTK3 and GTK4 apps. But what exactly is happening? Are they actually switching between the separate themes, or just loading the
gtk.css
orgtk-dark.css
? With the apps I've tested, the GTK3 ones seem to perform the switch when changing the gtk-theme value, whereas the GTK4 ones switch when changing the color-scheme value. Does that mean only the GTK3 apps are doing the former, and the GTK4 apps are just using the different css files?As a final question: My ideal scenario would be using custom light and dark variations of adw-gtk3/libadwaita, colored using named variables (like what Gradience does), and live switching between those at runtime as well. Would it somehow be possible to do that? My gut is telling me no but I'm confused as to what's even going on so I figured I might as well ask. Thank you very much for this theme and for your time, and sorry again if this is the wrong place to ask these questions!
OS and version [e.g Fedora 37]
NixOS 23.11
Adw-gtk3 version. Also specify your installation source. [e.g tar.xz, AUR, git main branch]
5.1, nixpkgs 23.11
GNOME version
N/A (I use Hyprland on Wayland)
Application name and version (If the issue is with an app.)
N/a