| 11 Jan 2026 |
| linsui joined the room. | 05:54:27 |
linsui | This simple file fix the dark theme for me after gnome-themes-extra is not installed by default.
pkgs.writeTextFile {
name = "adwaita-dark";
destination = "/share/themes/Adwaita-dark/gtk-3.0/gtk.css";
text = ''@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained-dark.css");'';
}
Would it make sense to install this by default? This is basically what gnome-themes-extra provides. IIUC, some programs rely on adwaita-dark them instead of the new adwaita theme with both dark and light variants.
| 05:59:47 |
| ghpzin changed their display name from ghpzin (moved to @ghpzin:envs.net) to ghpzin. | 15:04:41 |
| @ghpzin:envs.net left the room. | 16:18:33 |
jasi 🏳️⚧️ | Which programs rely on adwaita-dark? | 17:29:22 |
jasi 🏳️⚧️ | It seems like only gtk2 programs need this, no? | 17:44:27 |
jasi 🏳️⚧️ | * | 17:44:42 |
linsui | No. Flutter apps, Tauri apps, JFX apps and maybe some more rely on adwaita-dark. | 17:59:17 |
linsui | Since gtk2 should be removed and I don't have gtk2 program installed after gimp is updated, I didn't look into that. But I thought gtk3 programs also need this. | 18:00:37 |
jasi 🏳️⚧️ | It seems like for tauri it affects v1 apps since they use webkitgtk, this tauri toolkit user seems to say its fixed in v2 | 18:08:15 |
jasi 🏳️⚧️ | https://v2.tauri.app/reference/javascript/api/namespacewindow/#onthemechanged seems to imply they can listen to the theme now. | 18:08:37 |
jasi 🏳️⚧️ | I might be wrong though, but that seems like a tauri issue then at the very least. | 18:08:57 |
linsui | Not sure about v2, the only tuari app I used never updated to v2... | 18:09:03 |
linsui | And these apps themselves can listen to the theme, but the window decoration doesn't follow the theme. You can test with localsend. It also has an upstream issue but I'm not sure if it's this issue. https://github.com/flutter/flutter/issues/135390 | 18:11:05 |
jasi 🏳️⚧️ | This looks like a toolkit issue, they need to respond to the freedesktop portal to follow the theme preference or handle app theming in-app. | 18:13:15 |
jasi 🏳️⚧️ | GNU Emacs suffers from this as well (even on the wayland port) | 18:13:39 |
linsui | I can't fix those toolkits. 🤷 It would be great to get them fixed but I won't hold my breathe. But I can get those programs themed immediately. :) | 18:16:04 |
jasi 🏳️⚧️ | kde doing xdg_decoration also makes this annoying, app developers now think they can just ignore the title bar in design. | 18:16:26 |
jasi 🏳️⚧️ | But this issue will resolve itself hopefully, maybe document this workaround in the nixos wiki | 18:17:00 |
jasi 🏳️⚧️ | * | 18:17:07 |
linsui | And libreoffice has the same problem. IIRC jtojnar said that they can't reproduce the problem but I just test it and it's still not themed without the package. | 18:18:12 |
linsui | Eventually, maybe... Document is useful but I'm not sure if users can find that. | 18:19:10 |
linsui | I can open an PR if you point me to the correct position. | 18:19:38 |
jasi 🏳️⚧️ | Also have you tried setting the adw-gtk3 theme for applications? I'm using that workaround now for apps. | 18:20:37 |
jasi 🏳️⚧️ | Libreoffice is responding to it at least | 18:21:59 |
linsui | Currently I have this
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
gtk-theme = "Adwaita-dark";
};
What's the adw-gtk3 theme? Do I need to install it?
| 18:22:05 |
jasi 🏳️⚧️ | Yes it's pkgs.adw-gtk3 | 18:22:23 |
jasi 🏳️⚧️ | Just add it to your environment.systemPackages and it will be visible to dconf | 18:22:52 |
jasi 🏳️⚧️ | "org/gnome/desktop/interface" = {
gtk-theme = "adw-gtk3";
icon-theme = "MoreWaita";
};
I'm using this^
| 18:23:13 |
linsui | I guess they work in the same way. Those programs don't know about the dark variant. They can only use the theme. | 18:24:51 |