Anybody interested in a light/dark theme switcher?

Other talk about Salix
Post Reply
User avatar
gapan
Salix Wizard
Posts: 6285
Joined: 6. Jun 2009, 17:40

Anybody interested in a light/dark theme switcher?

Post 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.
Image
Image
User avatar
laprjns
Salix Warrior
Posts: 1108
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

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

Post by laprjns »

Nice, works here. I'm not sure how often I would use it, but I'm interested.
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
hugok
Posts: 376
Joined: 7. Dec 2011, 22:44

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

Post 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
Hugo Carvalho
Portuguese translator

https://github.com/hugok79
DidierSpaier
Posts: 525
Joined: 20. Jun 2016, 20:15

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

Post 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.
Post Reply