You are not logged in.
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
You can set the environnement variable:
OOO_FORCE_DESKTOP=kde # or maybe
SAL_USE_VCLPLUGIN=kdeBut 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
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
You can use the environment variables above without KDE installed.
Offline
Yes, I've tried that and re-tried now without success.
Offline
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
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
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
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
Ah I see. Is there not a GTK+ port of the Qt theme you are currently using?
Offline
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
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
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
The KDE VCL is linked to kdelibs. There's no way to use it if you don't have kdelibs installed.
Offline
Yes, remember its being enabled when kdelibs is installed. Yet there must be some file installed by it triggering that VCL plugin, no?
Offline
Yes, remember its being enabled when kdelibs is installed.
That's not what I mean. It is linked as in library linked.
Offline
All right, thanks.
Offline