XnView toolbar breaks with custom themes

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
Guest

XnView toolbar breaks with custom themes

Post by Guest »

Ok, i know. This should be blamed on me for using custom themes (521-advance4/3). The theme uses a customized uxtheme.

The problem is that when XnView starts the toolbar buttons are bigger than the toolbar in height. The XnView first starts, the toolbar and the buttons are sized properly, but later on the buttons are rendered incorrectly.

Image

To reproduce this, you should be able to do it by using,
521-Advance4/3: http://521.2ya.com/adv4-3.html
uxtheme: http://www.9down.com/modules.php?name=N ... e&sid=3569
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Post by ckit »

This is a problem with "521-Advance4/3" and NOT XnView.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
Guest

Post by Guest »

ckit wrote:This is a problem with "521-Advance4/3" and NOT XnView.
I disagree.

i would say it's the theme if XnView didn't start properly at first and then resize the icons wrong (this happens within the first seconds). In any case, i would assume that the same problem does occur on any theme (tweaked or otherwise) that has smaller toolbar buttons than the standard windows ones.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: XnView toolbar breaks with custom themes.

Post by helmut »

Anonymous wrote:Ok, i know. This should be blamed on me for using custom themes (521-advance4/3). The theme uses a customized uxtheme. ...

To reproduce this, you should be able to do it by using,
521-Advance4/3: http://521.2ya.com/adv4-3.html
uxtheme: http://www.9down.com/modules.php?name=N ... e&sid=3569
The first link raises "Forbidden access", with the second one I'm not quite sure what it does, so I didn't install it.

I assume that you have set the width / height in the file 'info.txt' for your custom scheme, if not this might be the problem.

Pierre will rather know what the problem might be...
Guest

Re: XnView toolbar breaks with custom themes.

Post by Guest »

helmut wrote: The first link raises "Forbidden access", with the second one I'm not quite sure what it does, so I didn't install it.
Hmm.. the author must have broken the site, it worked just fine this morning.. The second link will patch your uxtheme.dll to support StyleXP -like themes for WindowsXP. I can't guarantee that it doesn't do any harm, as it does replace a windows system file. So please, do your research before using the utility. (I've patched my computer without any troubles, but one can never be too careful)
helmut wrote: I assume that you have set the width / height in the file 'info.txt' for your custom scheme, if not this might be the problem.

Pierre will rather know what the problem might be...
Oh, i don't know if i made it clear. 521-Advance4/3 is a theme for Windows, not for XnView.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView toolbar breaks with custom themes.

Post by xnview »

Anonymous wrote:Ok, i know. This should be blamed on me for using custom themes (521-advance4/3). The theme uses a customized uxtheme.
So on Xp?
The problem is that when XnView starts the toolbar buttons are bigger than the toolbar in height. The XnView first starts, the toolbar and the buttons are sized properly, but later on the buttons are rendered incorrectly.
Image
To reproduce this, you should be able to do it by using,
521-Advance4/3: http://521.2ya.com/adv4-3.html
uxtheme: http://www.9down.com/modules.php?name=N ... e&sid=3569
Ok, i'll try this theme...
Pierre.
Guest

Re: XnView toolbar breaks with custom themes.

Post by Guest »

xnview wrote:
Anonymous wrote:Ok, i know. This should be blamed on me for using custom themes (521-advance4/3). The theme uses a customized uxtheme.
So on Xp?
Yeah..

I must apologise here, with the amount of bugreports i've done in the last few years, i should have been more precise on this one too.
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView toolbar breaks with custom themes.

Post by xnview »

Anonymous wrote:I must apologise here, with the amount of bugreports i've done in the last few years, i should have been more precise on this one too.
Could you tell me exactly what i must install on Xp?
Pierre.
Guest

Re: XnView toolbar breaks with custom themes.

Post by Guest »

xnview wrote:Could you tell me exactly what i must install on Xp?
You need to patch your uxtheme.dll (get the patching utility and follow instructions) and install the 521-advance4/3 theme (unpack it to %windir%\resources\themes directory) and set one of the variants as your theme (control panel -> display -> themes and select advance4-3-nnnn from the dropdown)

Be prepared for atleast one reboot after patching your uxtheme.dll.

And it looks like the 521 site works again.. ;)
Guest

Post by Guest »

Oh, and here is a quick link for the theme http://www.deviantart.com/download/5810530/
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote:Oh, and here is a quick link for the theme http://www.deviantart.com/download/5810530/
I've patched the uxtheme, and installed 521-Advance4/3 theme, but i have no problem with toolbar...
Perhaps a problem in my installation??
Pierre.
Guest

Post by Guest »

xnview wrote: I've patched the uxtheme, and installed 521-Advance4/3 theme, but i have no problem with toolbar...
Perhaps a problem in my installation??
so i take it that your toolbar stays compact and not spaced like my toolbar?

Oh well, i'll just suffer from the bug. It's not like it keeps me from using xnview ;)
Guest

Re: XnView toolbar breaks with custom themes.

Post by Guest »

helmut wrote:
Anonymous wrote:Ok, i know. This should be blamed on me for using custom themes (521-advance4/3). The theme uses a customized uxtheme. ...

To reproduce this, you should be able to do it by using,
521-Advance4/3: http://521.2ya.com/adv4-3.html
uxtheme: http://www.9down.com/modules.php?name=N ... e&sid=3569
The first link raises "Forbidden access", with the second one I'm not quite sure what it does, so I didn't install it.

I assume that you have set the width / height in the file 'info.txt' for your custom scheme, if not this might be the problem.

Pierre will rather know what the problem might be...
Post Reply