Page 1 of 6

0.88 Linux. system theme not adhered

Posted: Mon Nov 06, 2017 6:13 pm
by jooch
XnView: MP 0.88 / 64 bit
OS: Manjaro Linux 64bit

After upgrading to version 0.88 (needed to fix fontconfig issue) the system theme is not applied to XnView. All other QT apps work fine with the system theme. Qt5ct is set up.

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

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

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

Re: 0.88 Linux. system theme not adhered

Posted: Tue Nov 07, 2017 8:42 am
by xnview
i use lastest version of QT now (Qt 5.9), so perhaps a problem here

Re: 0.88 Linux. system theme not adhered

Posted: Tue Nov 07, 2017 6:34 pm
by jooch
I have qt 5.9.2 installed, so your version is older? I might have a system that was not updated recently, i'll test tomorrow.

Re: 0.88 Linux. system theme not adhered

Posted: Tue Nov 07, 2017 11:09 pm
by jooch
I found a laptop which still used qt 5.9.0, it also has the same problem with the XnViewmp 0.88, but not with 0.87.
QT 5.9.1 was known to have problems with theming from what i could find on the Manjaro forums, but that was back in July this year and solved with 5.9.2.

Re: 0.88 Linux. system theme not adhered

Posted: Wed Nov 08, 2017 7:58 am
by xnview
jooch wrote:I found a laptop which still used qt 5.9.0, it also has the same problem with the XnViewmp 0.88, but not with 0.87.
QT 5.9.1 was known to have problems with theming from what i could find on the Manjaro forums, but that was back in July this year and solved with 5.9.2.
strange i use 5.9.2

Re: 0.88 Linux. system theme not adhered

Posted: Wed Nov 08, 2017 9:30 pm
by sissou
Same on my debian system, qt 5.9.2 : XNView will only apply Qt's default theme.
Theme was fine with XNView 0.87.

Re: 0.88 Linux. system theme not adhered

Posted: Thu Nov 09, 2017 12:31 pm
by xnview
sissou wrote:Same on my debian system, qt 5.9.2 : XNView will only apply Qt's default theme.
Theme was fine with XNView 0.87.
i ask QT team

Re: 0.88 Linux. system theme not adhered

Posted: Fri Nov 10, 2017 8:03 am
by xnview
sissou wrote:Same on my debian system, qt 5.9.2 : XNView will only apply Qt's default theme.
Theme was fine with XNView 0.87.
is it GTK2, GTK3, KDE theme?

Re: 0.88 Linux. system theme not adhered

Posted: Fri Nov 10, 2017 11:57 am
by sissou
It's Arc GTK Theme, so GTK3 !
I use XFCE so I think it is GTK2 too ?

Re: 0.88 Linux. system theme not adhered

Posted: Fri Nov 10, 2017 2:12 pm
by jooch
xnview wrote:
sissou wrote:Same on my debian system, qt 5.9.2 : XNView will only apply Qt's default theme.
Theme was fine with XNView 0.87.
is it GTK2, GTK3, KDE theme?
Tested on XFCE system and Openbox, both configured for GTK2 and GTK3.
However, as far as i know QT5ct can only handle GTK2 themes.

Re: 0.88 Linux. system theme not adhered

Posted: Sat Nov 11, 2017 2:37 pm
by roland65
I tested on the latest Ubuntu 17.10. There, I used the adwaita-qt package to match the adwaita gtk3 theme (I think there is no other way to match gtk3 themes). This worked with VirtualBox (that also uses Qt 5.9.2) but not with XnView MP 0.88, where the default Qt theme is always used.

Re: 0.88 Linux. system theme not adhered

Posted: Mon Nov 13, 2017 7:47 pm
by xnview
on your system, which version of Qt do you have?

Re: 0.88 Linux. system theme not adhered

Posted: Mon Nov 13, 2017 10:56 pm
by sissou
Same with qt 5.7.1 and 5.9.2

Re: 0.88 Linux. system theme not adhered

Posted: Tue Nov 14, 2017 1:46 pm
by roland65
xnview wrote:on your system, which version of Qt do you have?
This is Qt 5.9.1.

Re: 0.88 Linux. system theme not adhered

Posted: Tue Nov 14, 2017 3:51 pm
by xnview
roland65 wrote:
xnview wrote:on your system, which version of Qt do you have?
This is Qt 5.9.1.
and if you try XnView not xnview.sh to use system libraries?