LXQt is gaining significant popularity recently, it’s already available in official Debian and Ubuntu repos.
So I was thinking about to use dark colored widget style in entire LXQt desktop.
It’s easy to implement on GTK+ based applications with lxappearance or similar tools, as there are hundreds of nice dark colored gtk2/gtk3 themes available.
But I’m going to do this in a different way, use Breeze or whatever widget style, but change the color schema with qt5ct .
1. Install qt5ct
Qt5ct is a theming tool for Qt 5 apps, similar to qtconfig-qt4 for Qt 4 apps, but more configurable and much more options.
You’re going to need that, here how to build and install qt5ct from source.
If you are running Ubuntu, a well mentained PPA is already available from webupd8.
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install qt5ct
2. Change some Qt related environment variables
To actually use qt5ct as Qt 5 application theming tool in LXQt, you need to change two environment variables in LXQt Session Settings, i.e. in lxqt-config-session .
Add two extra Environment Variables, QT_PLATFORM_PLUGIN and QT_QPA_PLATFORMTHEME , and set value qt5ct for both of them.
Logout from the current session and login again, now you can use Qt5ct to set color schema and widget style for Qt 5 apps.
Optional: Check environment variables,
printenv | egrep 'QT_QPA_PLATFORMTHEME|QT_PLATFORM_PLUGIN'
Both of the environment variables should be qt5ct.
3. Set color schema of your choice
Qt5ct stores it’s color schemas under the
~/.config/qt5ct/colors/ folder, these are text files with a .conf extension, totally different from KDE color schema.
You can edit the colors one by one under the Palette section, or get some from here.
- Breeeze Dark , inspired by Breeze dark color schema of KDE 5.
- GreyBird , colors close to Greybird GTK+ theme.
Move the color schemas to the ~/.config/qt5ct/colors/ folder to use them.
4. Matching icon theme, Qt4 widget style and GTK+ theme
With dark widget style, you should use a matching icon theme too, I’m using Antu Dark icon theme, here some elegant icon theme for both Qt and GTK+ based apps.
Well, the dark color schema applied through qt5ct is not going to work properly with Qt4 based apps, they will use the colors defined by
~/.config/Trolltech.conf file or as defined by KDE. You can use qtconfig-qt4 to edit the color palette for Qt4 apps, though it’s a bit tedious.
As said before, there are hundreds of dark colored themes for GTK+ based apps, use your favorite one.
Arc-Dark GTK+ theme is a good example, Breeze-Dark is another good alternative.
Here’s some elegant LXQt themes, check them out!
So that’s it ! Pretty easy, and dark colored widgets are also easy on eyes, perfect for low light condition.
I’m going to write another post soon about how to easily convert KDE color schemas to qt5ct color schemas easily, stay connected and enoy 😀