0.92 Linux: system theme not adhered

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

Moderator: Dreamer

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

0.92 Linux: system theme not adhered

Post by jooch » Thu Nov 22, 2018 2:17 pm

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: 31089
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.92 Linux: system theme not adhered

Post by xnview » Mon Nov 26, 2018 11:59 am

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 » Sat Feb 02, 2019 6:51 pm

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 27 times
qtstyleplugins-src-5.0.0.tar.gz
(305.35 KiB) Downloaded 22 times

User avatar
xnview
Author of XnView
Posts: 31089
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.92 Linux: system theme not adhered

Post by xnview » Mon Feb 04, 2019 11:49 am

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 » Sat Feb 09, 2019 8:28 am

Merci beaucoup Pierre...

sissou
Posts: 18
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.92 Linux: system theme not adhered

Post by sissou » Sat Feb 09, 2019 8:47 am

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 » Mon Feb 11, 2019 8:44 am

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 10 times
qt5ct_0.34-1build2.debian.tar.gz
(3.18 KiB) Downloaded 9 times

User avatar
xnview
Author of XnView
Posts: 31089
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.92 Linux: system theme not adhered

Post by xnview » Mon Feb 11, 2019 12:18 pm

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 » Mon Feb 11, 2019 1:16 pm

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