Page 1 of 1
1.4.0: GTK2 Theme not correctly applied on application startup [Solved]
Posted: Fri Jan 20, 2023 5:58 am
by anonsan
XnView MP 1.4.0 amd64
OS: Debian Sid amd64
Since 1.4.0 some UI elements are not themed when the application starts. I use QT_QPA_PLATFORMTHEME=gtk2 to match the GTK theme. Switching themes in Gnome Tweaks fixes the problem for the currently running instances. Other Qt applications are unaffected. Tested qBittorrent, SMPlayer and Audacious.
Effect: UI becomes visually unappealing and difficult to use.
To reproduce:
1. Start XnView MP with "env QT_QPA_PLATFORMTHEME=gtk2 xnview"
Actual behaviour (bug):
After starting:
After changing themes in Gnome Tweaks:
Expected behaviour:
The application immediately looks like the second picture.
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Fri Jan 20, 2023 11:03 am
by anonsan
Looks like the same issue as
viewtopic.php?p=183508.
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Sat Jan 21, 2023 10:28 am
by xnview
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Sat Jan 21, 2023 10:30 am
by anonsan
xnview wrote: Sat Jan 21, 2023 10:28 am
with 1.3.1 no problem?
Yes, almost certain I first noticed this after upgrading to 1.4.0. Do you have a 1.3.1 .deb so I can confirm?
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Sat Jan 21, 2023 10:33 am
by cday
anonsan wrote: Sat Jan 21, 2023 10:30 am
xnview wrote: Sat Jan 21, 2023 10:28 am
with 1.3.1 no problem?
Yes, almost certain I first noticed this after upgrading to 1.4.0. Do you have a 1.3.1 .deb so I can confirm?
Previous versions.
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Sat Jan 21, 2023 10:34 am
by anonsan
cday wrote: Sat Jan 21, 2023 10:33 am
anonsan wrote: Sat Jan 21, 2023 10:30 am
xnview wrote: Sat Jan 21, 2023 10:28 am
with 1.3.1 no problem?
Yes, almost certain I first noticed this after upgrading to 1.4.0. Do you have a 1.3.1 .deb so I can confirm?
Previous versions.
Thanks, confirmed. 1.3.1 works as expected.
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Mon Jan 23, 2023 8:39 am
by xnview
which theme do you use, to reproduce the problem?
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Mon Jan 23, 2023 8:59 am
by anonsan
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Mon Jan 23, 2023 9:59 am
by xnview

Thanks to your detailed description I can reproduce
the problem.
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Mon Jan 23, 2023 10:04 am
by anonsan
Good to see it fixed, thank you.
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Thu Jan 26, 2023 12:03 pm
by xnview
This problem is supposed to be fixed in
XnView MP 1.4.2. Please check and confirm the bug fix here.
Re: 1.4.0: GTK2 Theme not correctly applied on application startup
Posted: Thu Jan 26, 2023 12:07 pm
by anonsan
Confirmed fixed.