1.4.0: GTK2 Theme not correctly applied on application startup [Solved]

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
anonsan
Posts: 7
Joined: Fri Jan 20, 2023 5:29 am

1.4.0: GTK2 Theme not correctly applied on application startup [Solved]

Post 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:
Image

After changing themes in Gnome Tweaks:
Image

Expected behaviour:
The application immediately looks like the second picture.
anonsan
Posts: 7
Joined: Fri Jan 20, 2023 5:29 am

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by anonsan »

Looks like the same issue as viewtopic.php?p=183508.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by xnview »

anonsan wrote: Fri Jan 20, 2023 11:03 am Looks like the same issue as viewtopic.php?p=183508.
with 1.3.1 no problem?
Pierre.
anonsan
Posts: 7
Joined: Fri Jan 20, 2023 5:29 am

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by anonsan »

xnview wrote: Sat Jan 21, 2023 10:28 am
anonsan wrote: Fri Jan 20, 2023 11:03 am Looks like the same issue as viewtopic.php?p=183508.
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?
cday
XnThusiast
Posts: 4410
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by cday »

anonsan wrote: Sat Jan 21, 2023 10:30 am
xnview wrote: Sat Jan 21, 2023 10:28 am
anonsan wrote: Fri Jan 20, 2023 11:03 am Looks like the same issue as viewtopic.php?p=183508.
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.
anonsan
Posts: 7
Joined: Fri Jan 20, 2023 5:29 am

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

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

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by xnview »

which theme do you use, to reproduce the problem?
Pierre.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
anonsan
Posts: 7
Joined: Fri Jan 20, 2023 5:29 am

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by anonsan »

Good to see it fixed, thank you.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.4.2. Please check and confirm the bug fix here.
Pierre.
anonsan
Posts: 7
Joined: Fri Jan 20, 2023 5:29 am

Re: 1.4.0: GTK2 Theme not correctly applied on application startup

Post by anonsan »

Confirmed fixed.
Post Reply