0.92 Linux: system theme not adhered

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
jooch
Posts: 8
Joined: Mon Nov 06, 2017 5:59 pm

0.92 Linux: system theme not adhered

Post 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:
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.92 Linux: system theme not adhered

Post by xnview »

and previous version?
Pierre.
roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.92 Linux: system theme not adhered

Post 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!
Attachments
lib-qt5.9.7.tar.gz
(574.35 KiB) Downloaded 49 times
qtstyleplugins-src-5.0.0.tar.gz
(305.35 KiB) Downloaded 42 times
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.92 Linux: system theme not adhered

Post by xnview »

ok, i'll add it in next version...
Pierre.
roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.92 Linux: system theme not adhered

Post by roland65 »

Merci beaucoup Pierre...
sissou
Posts: 20
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.92 Linux: system theme not adhered

Post by sissou »

Thanks a lot !
User avatar
Schattenjager
Posts: 3
Joined: Mon Feb 11, 2019 8:02 am

Re: 0.92 Linux: system theme not adhered

Post 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!
Attachments
lib-qt5ct.tar.gz
(119.96 KiB) Downloaded 39 times
qt5ct_0.34-1build2.debian.tar.gz
(3.18 KiB) Downloaded 38 times
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.92 Linux: system theme not adhered

Post 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?
Pierre.
User avatar
Schattenjager
Posts: 3
Joined: Mon Feb 11, 2019 8:02 am

Re: 0.92 Linux: system theme not adhered

Post 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.
Post Reply