Custom design for Thumbnail tag boxes

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

Custom design for Thumbnail tag boxes

Post by orbspider »

May i suggest an improvement be made to the tag boxes on files?

1st of all, I find them small and hard to see if tagged or not. How about a colored square above a thumbnail (only when tagged) ?

wait a minute, if they are PNG images, can I change them myself?
User avatar
XnTriq
Moderator & Librarian
Posts: 6350
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Thumbnail tag boxes

Post by XnTriq »

Hi orbspider (o:
  1. Download XnViewMP-051-win.zip.
  2. Extract \XnViewMP\UI\icons\extra.png from the downloaded archive.
  3. Edit the checkbox icons in extra.png to your liking.
  4. Put the edited file in the \UI\icons\ subfolder of your XnViewMP installation.
  5. Tell me if it worked.
User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

Re: Thumbnail tag boxes

Post by orbspider »

Hi,
well there wasn't exactly a sub-dir of any sort in UI/ just icons, same as the Linux UI/ directory (just got arrow icons and checkbox icons for categories I think.)
You do not have the required permissions to view the files attached to this post.
User avatar
XnTriq
Moderator & Librarian
Posts: 6350
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Thumbnail tag boxes

Post by XnTriq »

orbspider wrote:well there wasn't exactly a sub-dir of any sort in UI/ just icons, same as the Linux UI/ directory (just got arrow icons and checkbox icons for categories I think.)
Oops, you're right. Sorry 'bout that \-:
These icons came only with the beta of v0.51!
extra.png
You do not have the required permissions to view the files attached to this post.
User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

Re: Thumbnail tag boxes

Post by orbspider »

that "exra.png" I save that, cut out the bit I want, edit colour, and mv to /opt/XnView/UI/icons

what files names do the icons need?
User avatar
XnTriq
Moderator & Librarian
Posts: 6350
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Thumbnail tag boxes

Post by XnTriq »

orbspider wrote:what files names do the icons need?
The name of the file has to be extra.png and the dimensions have to be 195×13 pixels.
You're not supposed to crop extra.png or save the checkbox icons as separate files.
User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

Re: Thumbnail tag boxes

Post by orbspider »

I c, but how does xnview app take out the part of the png for display? it must work by taking pixels of the png ??

anyway will try it...

Tried, no change to the tag boxes.
gota hit the sack, will b back :arrow:
User avatar
XnTriq
Moderator & Librarian
Posts: 6350
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Thumbnail tag boxes

Post by XnTriq »

orbspider wrote:but how does xnview app take out the part of the png for display? it must work by taking pixels of the png ??
Correctomundo. Upon start-up, XnViewMP looks for a file named extra.png in the \UI\icons\ folder and extracts the first 13² pixels to be used as the icon for the activated checkbox of tagged files.

Let me give you an example:
You do not have the required permissions to view the files attached to this post.
User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

Re: Thumbnail tag boxes

Post by orbspider »

i'm still here, perhaps my extra.png is in the wrong place, its in /opt/XnView/UI/icons/ (Linux)
ta for the help
User avatar
XnTriq
Moderator & Librarian
Posts: 6350
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Thumbnail tag boxes

Post by XnTriq »

I'm at my wits' end )-:
It definitely worked that way in v0.51 for Windows. Perhaps Pierre has changed something since then? We''ll have to wait and see what he says.
User avatar
xnview
Author of XnView
Posts: 43700
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Thumbnail tag boxes

Post by xnview »

could you send me your extra.png?
Pierre.
User avatar
orbspider
Posts: 170
Joined: Tue May 22, 2012 5:42 pm
Location: Malayan jungle

Re: Thumbnail tag boxes

Post by orbspider »

Yes, I forgot to upload it.
I just filled the icon areas with color and exported it to png (using GIMP)
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 43700
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Thumbnail tag boxes

Post by xnview »

Ok, a bug i'll fix it
Pierre.