You are not logged in.

#1 2016-06-06 22:14:38

Phalkon
Member
Registered: 2014-10-19
Posts: 117

[SOLVED] i3wm - how to theme qt applications

Hi,

in XFCE QT apps mimic the gtk theme I'm using, but in i3wm they don't.

Is there a way to make qt applications mimic gtk theme like they do by default in DE?

Last edited by Phalkon (2016-06-07 13:40:30)


Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

#2 2016-06-06 22:21:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,785

Re: [SOLVED] i3wm - how to theme qt applications

In what way?  Titlebars? No.  Icons, sliders. progress bars, fonts? https://wiki.archlinux.org/index.php/GTK%2B#Themes


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-06-07 00:41:25

aouelete
Member
Registered: 2015-05-27
Posts: 30

Re: [SOLVED] i3wm - how to theme qt applications

I'm pretty sure you can use the environment variable

QT_STYLE_OVERIDE=GTK+

to make QT5 applications use the GTK theme.

Offline

#4 2016-06-07 04:26:55

tmp-meteque
Member
Registered: 2015-12-11
Posts: 30

Re: [SOLVED] i3wm - how to theme qt applications


IBM Lenovo T430

Offline

#5 2016-06-07 09:30:25

Phalkon
Member
Registered: 2014-10-19
Posts: 117

Re: [SOLVED] i3wm - how to theme qt applications

ewaller wrote:

In what way?  Titlebars? No.  Icons, sliders. progress bars, fonts? https://wiki.archlinux.org/index.php/GTK%2B#Themes

Well I have those variables set. GTK2 applications display correctly. But QT don't.

aouelete wrote:

I'm pretty sure you can use the environment variable

QT_STYLE_OVERIDE=GTK+

to make QT5 applications use the GTK theme.

This seemed like it would be it, but it didn't work.
Maybe kdenlive, okular and qbittorrent aren't QT5? I don't know.

tmp-meteque wrote:

Yes, I've read this. It seemed like I had to install something the first time I've read it, but I didn't have to in XFCE. I thought it had to be some variable I was missing.

And it was.

~/.config/Trolltech.conf
...
[Qt]
style=GTK+
...

At least for kdenlive and okular.

But qbittorrent still doesn't use GTK theme, even though it did in XFCE, so I know it can be done.


Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

#6 2016-06-07 11:16:08

metak
Member
Registered: 2009-09-27
Posts: 198

Re: [SOLVED] i3wm - how to theme qt applications

Phalkon wrote:

Maybe kdenlive, okular and qbittorrent aren't QT5? I don't know.

kdenlive is qt5, okular seems to be still on qt4? and qbittorrent is also qt5.
To theme qt apps in i3wm run 'qtconfig-qt4'  to configure qt4 applications and install 'qt5ct' to configure qt5 applications.

Offline

#7 2016-06-07 11:51:46

Phalkon
Member
Registered: 2014-10-19
Posts: 117

Re: [SOLVED] i3wm - how to theme qt applications

metak wrote:
Phalkon wrote:

Maybe kdenlive, okular and qbittorrent aren't QT5? I don't know.

kdenlive is qt5, okular seems to be still on qt4? and qbittorrent is also qt5.
To theme qt apps in i3wm run 'qtconfig-qt4'  to configure qt4 applications and install 'qt5ct' to configure qt5 applications.

After installation 'qt5ct' and setting the style to GTK+, kdenlive went back to default theme. At first, it started to mimic gtk theme after setting the ~/.config/Trolltech.conf, but went back to default after installation of qt5ct.
Okular does still mimic the gtk theme and there was no change for qbittorrent (still the default theme).

I tried to change the fonts too, but that had no effect.


Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

#8 2016-06-07 12:56:34

metak
Member
Registered: 2009-09-27
Posts: 198

Re: [SOLVED] i3wm - how to theme qt applications

Have you set the environment variable after installing qt5rc?
https://wiki.archlinux.org/index.php/Qt … r_than_KDE

Offline

#9 2016-06-07 13:40:01

Phalkon
Member
Registered: 2014-10-19
Posts: 117

Re: [SOLVED] i3wm - how to theme qt applications

metak wrote:

Have you set the environment variable after installing qt5rc?
https://wiki.archlinux.org/index.php/Qt … r_than_KDE

Naturally, I haven't. Thanks. :]

Kdenlive is now trying to mimic gtk theme, but doing really bad job at that.
Nevermind though, I guess I can live with kde in the default theme, I was more interested in okular and qbittorrent, because I use them often.

But is there a way to make a certain qt application ignore the global QT_QPA_PLATFORMTHEME variable?
I tried running it with empty --platformtheme argument, but that didn't work.

Anyways, I guess I can mark this thread solved now.

Thank you all for helping.


Why Linux? Because it doesn't hide anything from you. It puts you so closely in control of your machine that you can feel its heartbeat.

Offline

Board footer

Powered by FluxBB