Coherent Color Scheme Creation for Qt and GTK on openSUSE

I might be pushing it just a bit by saying I “created” a scheme as I just took two color schemes, Breese Dark and openSUSEdarkalternate, and created one [subjectively] better theme based on those two. I happen to like the green accents in the openSUSE Workspace Theme and the Breeze Dark Theme looks pretty good but the mix of blue and green accents makes me less happy. I have been using the openSUSEdarkalternate theme for quite some time until I discovered an issue with one application.

Why take the time?

A couple reasons. For starters, the Breeze Dark GTK theme has been using blue highlights, which has been fine. The tipping point was when I was trying my hand in doing video editing with Kdenlive, I sort of bumped into a problem. The dark color scheme, openSUSEdarkalternate, did not play well so I had to switch it with the built in Breeze Dark scheme in order to be able to see all the icons and things. As nice as the stock Breeze Dark theme is, I really want those openSUSE green highlights and now more of my desktop was a mixture of themes. I was now compelled to unify the appearance of my desktop, especially after noodling around with ElementaryOS and seeing how much emphasis was put on its appearance. I wanted my choice of desktop to have a more unified but not exactly vanilla Plasma look to it. I wanted a unified openSUSE Theme.

The Solution

First was to ensure that all my KDE Plasma applications had a unified look. My first step was to take screenshots of the different green RGB color-values used in the openSUSEdarkalternate scheme. The green in that theme is just the hue and vibrance that is subtle and pleasant so it was imperative that I used the same colors. The absolutely fantastic feature of KDE Plasma as well as the related desktops preceding it is the ability to customize it to your hearts content. The tools are already there and ready for you to tweak. A testament to what makes Plasma great.

To start, open the KDE Plasma SystemSettings, then the Colors module under the Appearance section.

KDE Plasma SystemSettings

The Application Color Scheme tool has several schemes from which to choose. My first step was to open the openSUSEdarkalternate theme and take note of the RGB values of the different green colors used. I cheated and used the screenshot utility Spectacle to accomplish this. There were a total of four different green colors used.

I then opened the Breeze Dark theme and started changed all the relevant blue colors to the equivalent green colors.

KDE Plsama Color Scheme Customize.png

I only had to adjust the Common Colors section. It seems that any of the other sections are using the same Color Identifications. When I was complete, I saved this scheme as openSUSE Breeze Dark and applied the changes.

It looked good, but then I was still left with the GTK theme to change. I planned to do similar in Plasma as I did for GTK. Unfortunately, customizing color schemes in GTK is not baked in like it is Plasma so it was time to do some searching and I came upon this application called Oomox. There is no official openSUSE package but the fantastic openSUSE community maintains the package and it can be installed from here:

https://software.opensuse.org/package/oomox

Choose whichever community member maintained package you wish. Oomox does require one other package in order to run: gdk-pixbuf-devel

sudo zypper in gdk-pixbuf-devel

I was not able to import the Breeze Dark GTK theme so I just had to create what I wanted manually. It should be noted that such a feature has been requested. Good bad or otherwise, GTK color schemes are easier to create from scratch because there are fewer color in a theme.

Oomox Color Theme Customizer

Not pictured but there is a Roundness theme option so I modified that to match about what the Breeze theme is and set that parameter to 3. I thought that was an interesting setting to have and I quite enjoyed playing with it. Ommox is a very interesting piece of software and I recommend you to play around with it, just for fun.

It took four iterations of playing with the theme to get it right. I tested using Gnome-Recipes and Firefox to see that the scheme looked correct to my untrained eye.

Gnome-Recipes openSUSE Breeze Dark

My only criticism at this point is the GTK2 Theme is a bit blocky looking. I am not sure why, exactly. It just looks somewhat out of place against the Qt and GTK3 widget. I don’t think it’s a big deal but if anyone has any suggestions on that, I am open to anything you can offer.

Since I am happy with the theme and added to my openSUSE Linux page to download. I will eventually create a package hosted on OBS when I can take the time to do that properly.

Final Thoughts

Having exact color schemes hasn’t really been a thing for me, so long as it was close enough. Due to playing around with Elementary OS and seeing how everything is so well thought out, I started looking a bit more closely my desktop and thought, how can I make things look more deliberate? I am exceptionally pleased with the results and I think I may have also decided to go all in on Breeze Dark + openSUSE green. I even retired the Oxygen Window Decorations in favor of the Breeze Theme so that it better matches the GTK widgets. Everything seems nicely coherent. This is the most satisfied I have ever been with a desktop environment, ever.

Further Reading

openSUSE Linux | CubicleNate notes

https://software.opensuse.org/package/oomox

2 thoughts on “Coherent Color Scheme Creation for Qt and GTK on openSUSE

Leave a Reply