Easy change between light and dark themes
Posted: Thu Mar 22, 2018 12:14 pm
I was having difficulty with some applications and a dark theme, particularly with Libreoffice Calc. The colors i applied to charts and other element render in black and gray. Trying to adjust colors with Calc Preferences had no effect and some "fixes" offered on the Net did not work well.
So I created two launchers and put them in the panel for a quick theme change to light when I run Libreoffice. The commands change to light or dark themes and can be executed before or after opening Libreoffice.
For the light theme the command is:
And for the Dark Theme:
Of course you can change the theme name to any of the installed themes on your system.
I can now toggle between light and dark themes easily with one click rather than going through the XFCE settings dialog requiring several actions to open the Appearance dialog, scrolling to the theme, choosing it and reversing the choice when done with the troublesome application.
So I created two launchers and put them in the panel for a quick theme change to light when I run Libreoffice. The commands change to light or dark themes and can be executed before or after opening Libreoffice.
For the light theme the command is:
Code: Select all
xfconf-query -c xsettings -p /Net/ThemeName -s "Greybird-mx17"
Code: Select all
xfconf-query -c xsettings -p /Net/ThemeName -s "Arc-Dark"
I can now toggle between light and dark themes easily with one click rather than going through the XFCE settings dialog requiring several actions to open the Appearance dialog, scrolling to the theme, choosing it and reversing the choice when done with the troublesome application.