You are not logged in.

#1 2015-05-13 07:43:42

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

LXQT apps not respecting QT theme

Hello

So i decided to give a try to LXQT (i am a long time KDE user, tough). So far i am impressed but theming is pain in the ass. LXQT apps just dont respect my color scheme, KDE apps do. I have tried everything in this wiki https://wiki.archlinux.org/index.php/LX … _respected to no avail. Anybody experience same problems?


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#2 2015-05-13 15:41:27

Crozepp
Member
From: Basque Country
Registered: 2010-04-03
Posts: 42

Re: LXQT apps not respecting QT theme

I don't use lxqt but maybe this can help you?

http://qt-apps.org/content/show.php/Qt5 … 6f0d22988c

Offline

#3 2015-05-13 16:00:28

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

Hey,

thx for suggestion. I have tried but didn't work.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#4 2015-05-13 17:08:39

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: LXQT apps not respecting QT theme

"Didn't work" means that this apps doesn't start or that starts but without any effect?
If it doesn't start - try prior (0.10) version. There is a PKGBUILD in AUR (qt5ct) or there: http://www.archlike.darmowefora.pl/inde … 200.0.html
I've noticed, that version 0.11 build well, but we cannot run it.

Offline

#5 2015-05-13 20:05:15

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

pb wrote:

"Didn't work" means that this apps doesn't start or that starts but without any effect?
If it doesn't start - try prior (0.10) version. There is a PKGBUILD in AUR (qt5ct) or there: http://www.archlike.darmowefora.pl/inde … 200.0.html
I've noticed, that version 0.11 build well, but we cannot run it.

Application do start but the color scheme is not the one KDE apps have. I have installed 0.10 version but it doesn't have any effect. I just don't know how to change color scheme for LXQT appps.

Is there any special file or something to tweak color scheme for LXQT app? OVERRIDE variable doesn't work.

Last edited by Shark (2015-05-13 20:06:17)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#6 2015-05-14 11:19:14

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

New insights. If i launch any LXQT app in KDE i get the right colorscheme. Then if i immediately go to LXQT session i get the wrong (default) color scheme.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#7 2015-05-14 11:39:37

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: LXQT apps not respecting QT theme

Perhaps comparing environment variables gives a clue. In LXQT do:

env > env.lxqt

In KDE:

env > env.kde

then run:

diff -u env.kde env.lxqt

Also, the wiki article mentions KDE4, not sure if you use that or Plasma5.

Last edited by Alad (2015-05-14 11:42:41)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#8 2015-05-14 12:05:24

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

Hi

I have Plasma5. This is the output of diff command:

--- env.kde     2015-05-14 13:54:01.233357875 +0200
+++ env.lxqt    2015-05-14 14:04:14.666701288 +0200
@@ -1,54 +1,54 @@
-WINDOWID=18874374
-MAIL=/var/spool/mail/saso
-XDG_CURRENT_DESKTOP=KDE
-KDE_SESSION_VERSION=5
-DESKTOP_SESSION=plasma
-QT_IM_MODULE=compose
-LC_TIME=en_GB.UTF8
-PROFILEHOME=/home/saso
-KONSOLE_PROFILE_NAME=Shell
-KDED_STARTED_BY_KDEINIT=1
-LANGUAGE=
-XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session13
-GTK_MODULES=canberra-gtk-module
 XDG_SESSION_CLASS=user
-XCURSOR_THEME=Oxygen_Black
-DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-mfU4AwAlke,guid=d1a388c6bd7dd594d51fa51955545550
-SESSION_MANAGER=local/saso-laptop:@/tmp/.ICE-unix/8728,unix/saso-laptop:/tmp/.ICE-unix/8728
+XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
 LANG=en_GB.utf8
-PWD=/home/saso
-XAUTHORITY=/tmp/xauth-1000-_0
-LC_NUMERIC=en_GB.UTF8
+PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/saso/Documents/skripte
+XDG_SESSION_TYPE=x11
 XDG_VTNR=1
-XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
-XDG_SEAT=seat0
+SHELL_SESSION_ID=c727cb1938ad4000abea39649b559f77
+XDG_DATA_DIRS=/home/saso/.local/share:/usr/local/share/:/usr/share/
+KONSOLE_DBUS_SESSION=/Sessions/1
+XDG_SESSION_DESKTOP=
+PROFILEHOME=/home/saso
+DESKTOP_SESSION=lxqt
+DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XLxLwjnqEj,guid=a0bdaf277c371457db22aafe55548f0b
+DISPLAY=:0
+LC_TIME=en_GB.UTF8
+QT_QPA_PLATFORMTHEME=lxqt
+LC_NUMERIC=en_GB.UTF8
+HOME=/home/saso
+XDG_CURRENT_DESKTOP=LXQt
+XDG_CONFIG_HOME=/home/saso/.config
+XDG_MENU_PREFIX=lxqt-
+SHLVL=1
 TERM=xterm
+WINDOWID=46137350
 COLORFGBG=15;0
-KONSOLE_DBUS_SERVICE=:1.108
-PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/saso/Documents/skripte
-MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
-XDG_RUNTIME_DIR=/run/user/1000
-SHELL_SESSION_ID=5036b7322ad54000942f2ece9da69770
-XDG_SESSION_ID=c14
-KONSOLE_DBUS_WINDOW=/Windows/1
-XDG_SESSION_TYPE=x11
-XDG_SESSION_DESKTOP=KDE
-LOGNAME=saso
-QT_PLUGIN_PATH=/usr/lib/qt/plugins:/lib/kde5/plugins/
-_=/usr/bin/env
-SHLVL=2
+KONSOLE_PROFILE_NAME=Shell
+QT_PLATFORM_PLUGIN=lxqt
+GTK_CSD=0
 LC_MEASUREMENT=en_GB.UTF8
-LC_PAPER=en_GB.UTF8
-KONSOLE_DBUS_SESSION=/Sessions/1
+LOGNAME=saso
+QT_IM_MODULE=compose
+KONSOLE_DBUS_SERVICE=:1.35
+XDG_SEAT=seat0
+GTK_MODULES=canberra-gtk-module
+BROWSER=firefox
+XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
+LANGUAGE=
+MAIL=/var/spool/mail/saso
+PWD=/home/saso
 SHELL=/usr/bin/zsh
-KDE_SESSION_UID=1000
+KONSOLE_DBUS_WINDOW=/Windows/1
 USER=saso
+SAL_USE_VCLPLUGIN=kde4
+LC_PAPER=en_GB.UTF8
+XDG_DATA_HOME=/home/saso/.local/share
 LC_MONETARY=en_GB.UTF8
-KDE_FULL_SESSION=true
-GS_LIB=/home/saso/.fonts
-DISPLAY=:0
-XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
-HOME=/home/saso
+XDG_SESSION_ID=c23
+XAUTHORITY=/home/saso/.Xauthority
+XDG_RUNTIME_DIR=/run/user/1000
+LXQT_SESSION_CONFIG=session
+MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
 OLDPWD=/home/saso
 EDITOR=nano
 PAGER=less
@@ -63,3 +63,4 @@
 COLORTERM=yes
 vcs_info_msg_0_=
 vcs_info_msg_1_=
+_=/usr/bin/env

Last edited by Shark (2015-05-14 12:08:21)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#9 2015-05-14 12:32:40

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: LXQT apps not respecting QT theme

The QT_PLUGIN_PATH looks similar to what's in the wiki, except kde5. So, add to /etc/environment

QT_PLUGIN_PATH=/usr/lib/qt/plugins:/lib/kde5/plugins/

There's some other variables you could try, like DESKTOP_SESSION.

Last edited by Alad (2015-05-14 12:34:50)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#10 2015-05-14 12:43:26

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

I put both variable to /etc/environment to no avail. For DESKTOP_SESSION i have assigne value LXQt. Really weird.

Ouh, and what is also weird is that KDE systemsetting doesn't obey color scheme in LXQT environment also. Only apps like Konsole and Firefox (uses oxygen-gtk) but not also Thunderbird.

Last edited by Shark (2015-05-14 13:02:22)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#11 2015-05-14 13:15:06

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,313

Re: LXQT apps not respecting QT theme

Do you have frameworkintegration installed?

Offline

#12 2015-05-14 13:16:22

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

Yes, i have the latest.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#13 2015-05-14 15:08:50

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,313

Re: LXQT apps not respecting QT theme

How are you setting your color scheme? I can't find any such setting in the LXQT configuration options

Offline

#14 2015-05-14 15:54:39

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

arojas wrote:

How are you setting your color scheme? I can't find any such setting in the LXQT configuration options

Through KDE5 system settings. But that doesn't work except for Dolphin and Firefox (oxygen-gtk) in LXQT.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#15 2015-05-14 16:00:14

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,313

Re: LXQT apps not respecting QT theme

Shark wrote:

Through KDE5 system settings. But that doesn't work except for Dolphin and Firefox (oxygen-gtk) in LXQT.

Ah yes. That changes the KDE settings, not the Qt ones. So if you want Qt5 apps to pick up the change outside Plasma 5 you need to trick it into thinking that you're running a Plasma 5 session (export KDE_FULL_SESSION=true and KDE_SESSION_VERSION=5)

Offline

#16 2015-05-14 16:51:59

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: LXQT apps not respecting QT theme

Doesn't work. I put those variables in /etc/profile, /etc/environment, .zshrc to no effect. I really don't know ... I am breaking my head for two days now,  for colors sake smile

Last edited by Shark (2015-05-14 17:02:15)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#17 2015-05-15 05:51:41

pb
Member
From: Krakow, PL
Registered: 2014-12-26
Posts: 336
Website

Re: LXQT apps not respecting QT theme

Alad wrote:

The QT_PLUGIN_PATH looks similar to what's in the wiki, except kde5. So, add to /etc/environment

QT_PLUGIN_PATH=/usr/lib/qt/plugins:/lib/kde5/plugins/

There's some other variables you could try, like DESKTOP_SESSION.

There isn't any

/lib/kde5

or any other kde5" directories in system with Plasma 5 (KF5) installed. All "plugins" are in /usr/lib/qt/plugins.

Last edited by pb (2015-05-15 05:53:02)

Offline

Board footer

Powered by FluxBB