Page 1 of 1

0.92 Linux: system theme not adhered

Posted: Thu Nov 22, 2018 2:17 pm
by jooch
XnView: MP 0.92 / 64 bit
OS: Arch / Manjaro Linux 64bit

After upgrading to version 0.92 the system theme is not applied to XnView. All other QT apps work fine with the system theme. Qt5ct is set up.
Tested systems: 2 Arch Linux, 3 Manjaro systems.

Effect: Xnview will only apply Qt's default theme.

To reproduce:
1. Install version 0.92
2. Start XnView

Actual behaviour (bug): Fails to apply system theme :bug:

Re: 0.92 Linux: system theme not adhered

Posted: Mon Nov 26, 2018 11:59 am
by xnview
and previous version?

Re: 0.92 Linux: system theme not adhered

Posted: Sat Feb 02, 2019 6:51 pm
by roland65
Hi,

please, look at this thread for further information on this bug, and a solution for version 0.92 in the last post.

For 0.93, I attach the missing libraries. As before, just untar the archive in your /opt/XnView directory.

To Pierre : the problem is that these libraries must be recompiled each time you upgrade Qt otherwise the system theme is not applied. To avoid this, you could simply add the system theme support to your project. I attach here the sources files (from Ubuntu package qt-style-plugins-src-5.0.0) of the libraries.
Thanks!

Re: 0.92 Linux: system theme not adhered

Posted: Mon Feb 04, 2019 11:49 am
by xnview
ok, i'll add it in next version...

Re: 0.92 Linux: system theme not adhered

Posted: Sat Feb 09, 2019 8:28 am
by roland65
Merci beaucoup Pierre...

Re: 0.92 Linux: system theme not adhered

Posted: Sat Feb 09, 2019 8:47 am
by sissou
Thanks a lot !

Re: 0.92 Linux: system theme not adhered

Posted: Mon Feb 11, 2019 8:44 am
by Schattenjager
Hi,

@ roland65
Do we really need other files except libqgtk2style.so in the styles folder?

@ Pierre
Could you please also add libraries for users of qt5c? qt5ct allows you to use the system theme much better. I extracted these libraries from the package for Ubuntu 18.04 (version 0.34-1build2).
These libraries also must be recompiled when updating Qt. I attached the sources.
Upstream sources can be found here:
https://sourceforge.net/projects/qt5ct/

Thanks!

Re: 0.92 Linux: system theme not adhered

Posted: Mon Feb 11, 2019 12:18 pm
by xnview
Schattenjager wrote:
Mon Feb 11, 2019 8:44 am
@ Pierre
Could you please also add libraries for users of qt5c? qt5ct allows you to use the system theme much better. I extracted these libraries from the package for Ubuntu 18.04 (version 0.34-1build2).
so i need to add qt5ct AND qtstyleplugins, right?

Re: 0.92 Linux: system theme not adhered

Posted: Mon Feb 11, 2019 1:16 pm
by Schattenjager
xnview wrote:
Mon Feb 11, 2019 12:18 pm
so i need to add qt5ct AND qtstyleplugins, right?
That's right.
For XnView MP to use system theme on Ubuntu 18.10 with installed and configured qt5ct I had to copy these libraries:
libqgtk2.so and libqt5ct.so to /opt/XnView/lib/platformthemes;
libqgtk2style.so and libqt5ct-style.so to /opt/XnView/lib/styles.