Csepp <raingl...@riseup.net> writes:
> Ricardo Wurmus <rek...@elephly.net> writes: > >> Nathan Dehnel <ncdeh...@gmail.com> writes: >> >>> heard about guile-studio, but it doesn't appear to have a dark mode, >>> and I imagine trying to add one would require a bunch of emacs-style >>> screwing around with it. >> >> M-x modus-themes-toggle RET >> >> i.e. hold Alt, press x, then type “modus-themes-toggle” and hit the >> return key. >> >> We can add a little toggle button to Guile Studio that does this. > > Kinda tangential, but could Emacs be made to just use the system (GTK) > theme? Yes, that’s my plan, but I don’t have enough time this month to work on it. My notes: + when =dconf read /org/gnome/desktop/interface/color-scheme= returns ’prefer-dark’ enable dark mode by default. + use =xprop= to change the theme variant *after* the frame has been created; see https://gist.github.com/itoshkov/850c46746705e32e2039fb0112a75ec7 + we may also need to set =GTK_THEME= to =Adwaita:dark= before actually launching Guile Studio. Or rather the value at =/org/gnome/desktop/wm/preferences/theme= followed by =:dark=. This can be done in shell wrapper. -- Ricardo