You are not logged in.

#1 2015-10-31 09:49:51

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Is it possible to fool LibreOffice to use qt theme without KDE

Except for Firefox, I've got a Qt-only (Fluxbox) system without any KDE packages and for theming my system I use the brilliant qt5ct (a much better version of qtconfig-qt4 for Qt5 with presets etc.). Now is it possible to fool LibreOffice to use qt theme without instaling KDE?

Offline

#2 2015-10-31 10:36:11

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Is it possible to fool LibreOffice to use qt theme without KDE

You can set the environnement variable:

OOO_FORCE_DESKTOP=kde # or maybe
SAL_USE_VCLPLUGIN=kde

But I don't think LibreOffice will use QT; it simply adjust its look to look like KDE/Qt applications and respect (some of) its settings, but it is cosmetic, the underlying libraries is still GTK; as in KDE.

Last edited by olive (2015-10-31 10:36:50)

Offline

#3 2015-10-31 10:40:20

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Thanks for the reply. Yes, I know about SAL_USE_VCLPLUGIN=kde, but I'd like to accomplish this without installing any KDE. I've tried some tricks some time ago without success. As for "the underlying libraries is still GTK", I guess the underlying is not GTK, but its native (ugly) toolkit, which is enabled by SAL_USE_VCLPLUGIN=gen.

Offline

#4 2015-10-31 11:06:19

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Is it possible to fool LibreOffice to use qt theme without KDE

You can use the environment variables above without KDE installed.

Offline

#5 2015-10-31 11:09:57

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Yes, I've tried that and re-tried now without success.

Offline

#6 2015-10-31 11:24:43

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Is it possible to fool LibreOffice to use qt theme without KDE

For me (using LibreOffice in Xfce), exporting OOO_FORCE_DESKTOP=kde does automatically change the LibreOffice icon theme from Tango to Oxygen however the application theme is still very much Adwaita. I think LibreOffice can only work with the resources it has -  I notice that the libreoffice-still package (which is what I use) provides the file '/usr/lib/libreoffice/share/config/images_oxygen.zip' so that explains where the Oxygen icons are coming from. But without the Oxygen Qt theme (and It's compatible GTK+ version) installed, LibreOffice is not going to be able to magically make itself look like a KDE/Qt application.

Offline

#7 2015-10-31 11:33:19

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Thank you for the info Chazza. Yes, no problem with the icons, but the rest… as you've said. When KDE is installed, its theme(s), for instance oxygen, is installed as /usr/lib/kde/plugins/styles/liboxygen.so if I'm not mistaken. So I've tried symlinking various Qt themes as KDE ones but failed. I'm going to try again now.

Offline

#8 2015-10-31 11:41:50

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Is it possible to fool LibreOffice to use qt theme without KDE

I haven't dabbled in KDE/Qt for quite some time but I seem to remember that the Oxygen Qt theme had a GTK+ port available so that GTK+ applications could blend in on a KDE desktop. So if that's still around I imagine you could just install that, set it as the GTK+ theme and then LibreOffice will just use that without the need for any env vars or symlinking.

Last edited by Chazza (2015-10-31 11:42:45)

Offline

#9 2015-10-31 11:49:41

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Yes, I can do that, but it would be different from my general Qt theme as I don't have oxygen-kde and there's no oxygen-qt. So it would be just another GTK theme.

Offline

#10 2015-10-31 11:56:43

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Ah I see. Is there not a GTK+ port of the Qt theme you are currently using?

Offline

#11 2015-10-31 12:04:57

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

I use qtcurve (customised by qt5ct and manually a bit), yet qtcurve-gtk2 isn't customisable and qtcurve-gtk3 neither does nor will exist. Besides, I can use different qt engines (the default fusion, kvantum or virtuality) and customise them either by their own managers or by qt5ct. That is, in short I'm very free with Qt, but there're no GTK counterparts. Devs refuse to deal with GTK(3) as it's constantly breaking API or something, which seems to be a valid argument as I've come across similar claims even by GTK theme devs as well.

Offline

#12 2015-10-31 12:22:55

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Fair enough. So I guess we're back to trying to make LO use the Qt theme. Quite why setting OOO_FORCE_DESKTOP=kde doesn't work I don't know but one reason might be (and I'm just wildly guessing here) that LO cannot find some KDE settings file which defines which Qt theme to use. I don't know where this file might be located or what its syntax might be but perhaps if you created the file manually, LO would read it and then use the correct theme. Just a wild guess.

Edit: nope, incorrect assumption. Thanks for the info arojas.

Last edited by Chazza (2015-10-31 14:25:38)

Offline

#13 2015-10-31 12:40:49

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Yes, same line of reasoning here as well, yet I don't know which file is that. I've tried some before without success. The better idea might be to ask this in LO forums or some such place.

Offline

#14 2015-10-31 14:08:52

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

Re: Is it possible to fool LibreOffice to use qt theme without KDE

The KDE VCL is linked to kdelibs. There's no way to use it if you don't have kdelibs installed.

Offline

#15 2015-10-31 14:29:58

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

Yes, remember its being enabled when kdelibs is installed. Yet there must be some file installed by it triggering that VCL plugin, no?

Offline

#16 2015-10-31 15:22:09

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

Re: Is it possible to fool LibreOffice to use qt theme without KDE

fluxboxer wrote:

Yes, remember its being enabled when kdelibs is installed.

That's not what I mean. It is linked as in library linked.

Offline

#17 2015-10-31 15:25:02

fluxboxer
Member
Registered: 2012-12-02
Posts: 118

Re: Is it possible to fool LibreOffice to use qt theme without KDE

All right, thanks.

Offline

Board footer

Powered by FluxBB