Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-03-07 16:56:15

Laurentius
Member
Registered: 2016-09-04
Posts: 10

Clementine player (and some other app) does not apply theme (SOLVED)

Hello.
I'm on Debian Jessie. Clementine from the repos (1.2.3)
I have installed XFCE and also GNOME on the same debian system.

If i log in to GNOME, Clementine applies themes. But, as i log in to XFCE, it does not apply any. It is stuck on the same theme (don't know which, very basic appearance, white background, black fonts, blue selections)
Also i see Synaptic is stuck on a fixed theme (vertex-maia, i think) and doesen't move from that on XFCE.
Synaptic is also stuck on GNOME (but this time on adwaita gtk)
I don't care synaptic, but i would like to apply a dark theme (like numix-dark) on Clementine.

How could i fix that?

Last edited by Laurentius (2017-03-12 07:24:25)

Offline

#2 2017-03-07 22:55:43

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 542
Website

Re: Clementine player (and some other app) does not apply theme (SOLVED)

You need a proper theme that includes GTK2/3 and Qt4/5 themes, there aren't many available due the history of Qt(however more and more apps favor Qt nowadays so this list will probably grow in the future) - anyway here is a small(but incomplete) list:

* breeze: https://github.com/KDE/breeze-gtk
* hedera: https://www.xfce-look.org/p/1166382/
* adwaita: https://github.com/MartinBriza/adwaita-qt

also you can set the qt style to use the GTK theme however that has never and will never fully work(you will always have some glitches)! eg by using qt5ct and qt4-config.


$ aptitude why gnome   
Unable to find a reason to install gnome.

regards, ssf

Offline

#3 2017-03-09 01:34:18

Laurentius
Member
Registered: 2016-09-04
Posts: 10

Re: Clementine player (and some other app) does not apply theme (SOLVED)

thank you sixsixfive for the the reply.

I've tried breeze-gtk but i'm affraid it doesen't work with clementine on xfce, as none does.

how can i "set the qt style to use the GTK theme"?
-----
just to anderstand: Why in Linux Mint 17.3 (xfce 4.12) clementine does apply themes?
should i expect theming will work in clementine on debian whith the usual themes (e.g. xfce-dusk) if I upgrade to xfce 4.12 (from debian stretch repos)?

Last edited by Laurentius (2017-03-09 01:51:30)

Offline

#4 2017-03-11 15:19:45

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 542
Website

Re: Clementine player (and some other app) does not apply theme (SOLVED)

you don't set the breeze-gtk themes as qt style you use it as gtk2/3 theme only and set the qt style to native breeze(qt-config for qt4, qt5ct for qt5)

PS as mentioned above you can also setup qt to use the gtk theme(same again with qt-config and qt5ct) but it will never fully work.

Last edited by sixsixfive (2017-03-11 15:39:42)


$ aptitude why gnome   
Unable to find a reason to install gnome.

regards, ssf

Offline

#5 2017-03-12 07:23:19

Laurentius
Member
Registered: 2016-09-04
Posts: 10

Re: Clementine player (and some other app) does not apply theme (SOLVED)

Oh, sorry I hadn't understand you well.

I could make Clementine apply the theme following what i think is the second way you mention, that is, to "setup qt to use the gtk theme" by choosing GTK+ in the GUI Syle selector of qt4-qt4config.

So my issue can be considered solved-
Thank you very much.

PS.
i don't understand yet which is the other method you consider i could "also" try.

In your first answer I see:

1) Simply installing a correct compatible theme. (This did not work or the breeze-gtk theme is not compatible)

And also:

2) "set the qt style to use the GTK theme" (I did this and worked)

And in your second answer i see:

1) "set the qt style to native breeze"

And also, the yet mentioned:

2) "setup qt to use the gtk theme" (same as de #2 of fist answer. This i did)

So, What is the #1 option?
In the qt4-qtconfig GUI Style selector the options i see are:
-Desktop settings (Default)
-CDE
-Cleanlooks
-GTK+
-Mofif
-Palstique
-Windows

The only one that worked was GTK+.

I'd like to kwow the other method because you suggest the workaround i followed would never fully work. I haven't found any serious glitches yet, though.

Thanks again.

PS 2:
Synaptic remains "un-themeable" (stuck in adwaita)

Last edited by Laurentius (2017-03-12 07:26:54)

Offline

#6 2017-03-12 13:05:50

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 542
Website

Re: Clementine player (and some other app) does not apply theme (SOLVED)

OK here a step by step example(i guess you are on debian? or ubuntu?)

first install breeze-gtk and the qt breeze themes and qt config

sudo apt install --no-install-recommends gtk3-engines-breeze kde-style-breeze kde-style-breeze-qt4 qt4-qtconfig

now you need qt5ct which is not available in debian or ubuntu so you have to build it

git clone https://github.com/mati75/qt5ct.git && cd qt5ct

check if you have all build deps installed and install missing

dpkg-checkbuilddeps
sudo apt install  --no-install-recommends $INSERT_DEPS_HERE

build the package and install it

dpkg-buildpackage -us -uc -B -rfakeroot
sudo dpkg -i ../qt5ct_*.deb

add the following to/etc/X11/Xsession.d/100-qtstyle

export QT_QPA_PLATFORMTHEME=qt5ct
export QT_PLATFORMTHEME=qt5ct
export QT_PLATFORM_PLUGIN=qt5ct

restart and choose your gtk2/3 theme over xfce appearance settings
open qt-config to select the breeze theme and set your font size/dpi
open qt5ct and set breeze style, fonts, dpi, icons etc

--------------------------------

> I haven't found any serious glitches yet, though.

they are mostly tiny glitches(eg if you use double scrollbar arrows, menuitems or other rarely used Qtwidgets, the newer QML widgets) or non-qt native widgets(like WxQt)
-----------------
>Synaptic remains "un-themeable" (stuck in adwaita)

thats because synaptic is run as root so you need to change your root/systemwide GTK theme

Last edited by sixsixfive (2017-03-12 15:30:29)


$ aptitude why gnome   
Unable to find a reason to install gnome.

regards, ssf

Offline

Board footer

Powered by FluxBB