Page 1 of 1

Anybody interested in a light/dark theme switcher?

Posted: 13. Sep 2024, 15:58
by gapan
Something like this script:

Code: Select all

#!/bin/bash

CURRENT_THEME=`xfconf-query -c xsettings -p /Net/ThemeName`

if [ x"$CURRENT_THEME" == x"Salix-dark" ]; then
  xfconf-query -c xsettings -p /Net/ThemeName -s "Salix"
  xfconf-query -c xsettings -p /Net/IconThemeName -s "Qogir"
  xfconf-query -c xsettings -p /Gtk/CursorThemeName -s "Qogir"
else
  xfconf-query -c xsettings -p /Net/ThemeName -s "Salix-dark"
  xfconf-query -c xsettings -p /Net/IconThemeName -s "Qogir-dark"
  xfconf-query -c xsettings -p /Gtk/CursorThemeName -s "Qogir-dark"
fi
(WARNING: if you set your theme to something else, it will revert it to the one we use as default)

I remember I had tried that before releasing 15.0, but it had some issues in Xfce 4.16, some things needed a log out/log in to refresh. I just tried it again in Xfce 4.18 and it seems to work fine. I think.

So, should I add something like that to our default installation? Probably with a proper menu entry and maybe some basic GUI on top.

Re: Anybody interested in a light/dark theme switcher?

Posted: 14. Sep 2024, 10:59
by laprjns
Nice, works here. I'm not sure how often I would use it, but I'm interested.

Re: Anybody interested in a light/dark theme switcher?

Posted: 16. Sep 2024, 16:16
by hugok
It was nice to see that choice. More and more we see the dark and light themes.

Something like this: https://github.com/pardus/pardus-welcom ... come-3.png

Re: Anybody interested in a light/dark theme switcher?

Posted: 16. Sep 2024, 19:19
by DidierSpaier
I'd like to provide something like that for MATE in Slint. As an aside I like the Budgie desktop (tried in a Qemu VM) that provides this feature in the desktop settings GUI.