This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to change color theme of specific application

Tags: None
(comma "," separated)
coolpanda
Registered Member
Posts
11
Karma
0
I want to change the theme of all Libreoffice apps. I'm running KDE Plasma 5. I have tried
Code: Select all
env QT_STYLE_OVERRIDE=Qogir
but it's not working. How can I do that?
dzon
Registered Member
Posts
493
Karma
3
QT_STYLE_OVERRIDE=theme application
However, there are only a few options available. As far as I know, a dark theme is not in it. The way I do certain applications is by using a dark kvantum theme.
To launch an application would be, for example: QT_STYLE_OVERRIDE=Kvantum libreoffice --writer
The theme has to be set in the kvantum manager. In your case that would be setting it to qogir ( if it's available as kvantum. If not, arc is the closest).


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
dzon
Registered Member
Posts
493
Karma
3
I quickly checked. Qogir is available as kvantum. This is what it looks like. Qogir dark override whilst other stuff is in breeze light. https://imgur.com/a/G2VCVjH


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
coolpanda
Registered Member
Posts
11
Karma
0
When I run QT_STYLE_OVERRIDE=<invalid theme> libreoffice --writer, I get this
Code: Select all
QApplication: invalid style override 'Qogir' passed, ignoring it.
        Available styles: Breeze, chameleon, kvantum-dark, kvantum, Lightly, Oxygen, Windows, Fusion

So I tried all of these themes, but none of them are light themes. I want a light theme. Also, I don't exactly know how to use the Kvantum manager. I tried going in to the application themes tab in Kvantum and entering the name of the app (eg: konsole) but that doesn't change the theme.

Also, the QT_STYLE_OVERRIDE command is working only in the terminal not in the .desktop file. This is the Exec command from the .desktop file
Code: Select all
Exec=QT_STYLE_OVERRIDE=Oxygen libreoffice --writer %U
dzon
Registered Member
Posts
493
Karma
3
So, if I get it right, you want qogir light as theme for libreoffice, regardless if the rest of your colors is set to a dark or light color right? Well, the way to do it is exactly the same you know. Unless you're already using kvantum that is, you pick a theme in the kvantum manager. That is the theme that will be used in QT_STYLE_OVERRIDE=Kvantum libreoffice --writer command. If you're already using kvantum as application style, THEN you need to force libreoffice to use another theme.
In this example I'm using the lightly application style with a dark color. I've set the qt override of libreoffice to use a light kvantum theme. https://imgur.com/a/NmonnaM


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
dzon
Registered Member
Posts
493
Karma
3
As for the desktop file, just edit the launcher. Like so: https://imgur.com/a/5SyeAMI
And in the kvantum manager, it's not the application tab you need. It's the main theme entry. Whatever theme you choose there will be the one used. https://imgur.com/a/L4iKQRG


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
dzon
Registered Member
Posts
493
Karma
3
The application tab in kvantum manager is only when you already use kvantum application style ( instead of breeze, fusion, oxygen whatever). For example, here I'm using a dark kvantum theme, but set konsole to use a light kvantum theme. https://imgur.com/a/nr9E0sk


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]