Scrap that idea. Seems there is already a plugin to do this called Load QSS. I’m not going to duplicate effort. Use that one and we can all make it better.
Want to have a dark theme, or even your own custom theme, for QGIS? No worries. The UI Theme plugin has your back. Grab it from the plugin installer.
Change the theme using Plugins -> UI Themes -> Theme It!
Just select a theme and the interface will change styles. Here is the dark theme called “Much Dark. Such Goth” :)
I will let you try the “Oh my eyes” theme.
Themes can be added by creating a {name}.css
file in plugin folder themes folder and edited __init__.py
file to list the theme. I’m working on this to make it better but I wrote this in about half an hour so it’s not all there yet.
The active themes is saved in the settings and restored on QGIS load.
If you make a cool theme feel free to make a pull request or ticket so it can be added to the plugin for others to use. There is heaps that can be done with the Qt stylesheets so go nuts and make something cool.
Note: It’s a work in progress and things might not always look right.
Filed under: Open Source
