5 ms·
i3 is just a window manager. It's not a UI toolkit. It doesn't control how apps render UI. GTK and QT are UI toolkits and do control how apps render UI. Your a
by singron 2y ago
i3 is just a window manager. It's not a UI toolkit. It doesn't control how apps render UI.
GTK and QT are UI toolkits and do control how apps render UI. Your apps will use GTK and QT even if you use i3 to manage the windows.
You might be confusing GTK with Gnome and QT with KDE, each of which has its own window manager.
- smegsicle 2y agoso you're saying to get gtk apps to switch to dark mode, you'd find the gtk setting for dark mode? and the same for qt?
- viraptor 2y agoYes, for example check "gsettings set org.gnome.desktop.interface gtk-theme" for the gtk apps.
- lkdfjlkdfjlg 2y agoSee but this is the kind of responses that confuse me. What does that mean "gtk apps"? Is firefox a "gtk app"? Is vscode a "gtk app"? etc.
- viraptor 2y agoCheck the dependencies. If it depends on libgtk, it's a gtk app. libQt, is a qt app. There maybe rare other situations (Tk, plain xlib, fltk, etc.)
- vetinari 2y agoThis will get you 99%, but there are exceptions. I.e. Firefox is linked against GTK, but paints its own widgets with custom theming anyways. Telegram is linked against Qt, but has it's own theming/dark mode too.
- lkdfjlkdfjlg 2y agoYou seem like you know what you're talking about, help please? https://news.ycombinator.com/item?id=40583867 https://news.ycombinator.com/item?id=40583867
- lkdfjlkdfjlg 2y agoAs in this post https://askubuntu.com/questions/769417/how-to-change-global-dark-theme-on-and-off-through-terminal https://askubuntu.com/questions/769417/how-to-change-global-... I ran gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' and firefox isn't in dark mode, despite the fact that i have firefox configured to use the system theme and firefox is on GTK according to google. Help again?
- vetinari 2y agoWhen you set dark mode in the current gnome (with support for dark mode), the following will be set: org.gnome.desktop.interface color-scheme 'prefer-dark' Valid values are “default”, “prefer-dark”, “prefer-light”. org.gnome.desktop.interface gtk-theme '(your-theme)-dark' This is the one you have set.
- lkdfjlkdfjlg 2y ago$ gsettings get org.gnome.desktop.interface color-scheme No such key “color-scheme” Debian 11. Is it because it's old-ish?
- vetinari 2y agoOh, Gnome 3.38. I'm not sure that version even supported dark mode, only dark themes. I won't comment on aging of Debian ;). Btw, what version of Firefox are you using? Debian comes with ESR, so chances are, that firefox' "ui.systemUsesDarkTheme = 1" still works (it doesn't in newer releases).
- lkdfjlkdfjlg 2y agoI have 102.6.0esr (came with the OS) and I also installed 126.0. Neither of them has has `ui.systemUsesDarkTheme`. So anyway do you think that if I upgrade to the latest Debian, your gtk command line will work?
- 2y ago
- lkdfjlkdfjlg 2y agoAnd you know, this > You might be confusing GTK with Gnome and QT with KDE, each of which has its own window manager. Just cleared up a lot of confusing in my mind. Thank you.