YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
3.77k stars 113 forks source link

GTK theming issue using niri-session vs niri #193

Closed KiaraGrouwstra closed 8 months ago

KiaraGrouwstra commented 8 months ago

hey there, i'd so far accidentally been running niri over niri-session, and now that i tried the latter i've come across some differences among the two. while niri-session fixed XDG autostart for me (as expected), it seems that GTK prompts, like context menus in firefox as well as vscodium's "are you sure you wish to close this unsaved file" dialog, no longer use my GTK dark theme like they did using niri. while this might also touch upon e.g. xdg-desktop-portal-gnome, is this a known issue by any chance?

YaLTeR commented 8 months ago

This might be caused by GTK now reading settings from the portal (but not sure). If that's the case, the portal will forward the GNOME settings, i.e. to set the dark style preference you'd need to do

dconf write /org/gnome/desktop/interface/color-scheme '"prefer-dark"'
sodiboo commented 8 months ago

nix sidenote that is not necessarily relevant to the issue, but to the user experiencing it: dconf can be configured in home-manager using dconf.settings, and they also mentioned using stylix, in which case the proper solution should be stylix.polarity = "dark" in the nix configuration, which sets dconf settings for you (along with also affecting the general stylix theme, i guess)

KiaraGrouwstra commented 8 months ago

interesting, i have in fact had that set (indeed thru stylix since using that). i might wanna investigate a bit more.

YaLTeR commented 8 months ago

I guess this is not a niri issue per se. If there's something concrete we can document it on the wiki.