0.83: Format colors isn't working for custom file extensions

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderator: Dreamer

Re: 0.83: Format colors isn't working

Postby xnview » Wed Feb 15, 2017 3:03 pm

helmut wrote:This is what you have written before. We have five users here and all have a problem with this. Could you please explain in full detail how you add svg? After adding svg to the colour list, do the SVG files really have the colouring that you have set?

enter svg in field, click on Add, select svg entry, and change the color. After i have the good color
there is a little problem, you need to change color after adding it (this tab need to be enhanced)
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26738
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.83: Format colors isn't working

Postby helmut » Wed Feb 15, 2017 3:06 pm

xnview wrote:
helmut wrote:This is what you have written before. We have five users here and all have a problem with this. Could you please explain in full detail how you add svg? After adding svg to the colour list, do the SVG files really have the colouring that you have set?

enter svg in field, click on Add, select svg entry, and change the color. After i have the good color
there is a little bug, if you enter svg, change color, and click add, the color is not saved

This doesn't work for me: The entry is added but the SVG files still have the wrong colour (which is the colour of JPG files).

This is the entry which has been added by XnView in the .ini file:
formatColor-26="[svg],255 255 0,0 0 0"

When adding "svg", which entry do you choose in the dropdownlist on the right side?
User avatar
helmut
Moderator
 
Posts: 7779
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.83: Format colors isn't working

Postby Erixx haxx » Wed Feb 15, 2017 3:40 pm

Hello:

I just found if you remove .jpeg then it works. It seems .jpeg is over powering .svg

How to Add:
1.)Clear the right hand text box to empty,
2.)Then Add [svg] without brackets into the left hand text box
3.)Click Add button
It works then.
Then you can add jpeg back..
Last edited by Erixx haxx on Wed Feb 15, 2017 4:01 pm, edited 2 times in total.
Windows 7 Ultimate, x64-bit (SP 1) XnViewMP x64 v0.85-b-1 Port
ASUSTek P8Z77-v
i5-3570K CPU @ 3.40GHz
Memory: x16.0 GB
Samsung SSD 840 EVO 250GB ATA
NVIDIA GeForce GTX 960 @ 1177 MHz
Dedicated: 4096 MB GDDR5
User avatar
Erixx haxx
 
Posts: 312
Joined: Tue Jul 28, 2015 10:37 am

Re: 0.83: Format colors isn't working

Postby XnTriq » Wed Feb 15, 2017 3:45 pm

Are these the exact steps, Pierre?

  1. Go to ToolsSettings...File listCustom filter and remove svg from the list of formats to be excluded.
  2. Go to ToolsSettings...File listFormat colors.
  3. Activate Use color based on file format.
  4. Select SVG in the drop-down list.
  5. Click the Add button.
  6. Select [svg] in the list.
  7. Choose your preferred colors by clicking the buttons on the right of the dialog.
  8. Confirm with OK.
  9. Point the browser to a folder which contains SVG file.
User avatar
XnTriq
Moderator & Librarian
 
Posts: 4728
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 0.83: Format colors isn't working

Postby Erixx haxx » Wed Feb 15, 2017 3:59 pm

XnTriq wrote:Are these the exact steps, Pierre?

  1. Go to ToolsSettings...File listCustom filter and remove svg from the list of formats to be excluded.
  2. Go to ToolsSettings...File listFormat colors.
  3. Activate Use color based on file format.
  4. Select SVG in the drop-down list.
  5. Click the Add button.
  6. Select [svg] in the list.
  7. Choose your preferred colors by clicking the buttons on the right of the dialog.
  8. Confirm with OK.
  9. Point the browser to a folder which contains SVG file.

I tried this way, and all sorts of other ways also.

Only way I got it working was by :
--Adding svg With No brackets[].
--Right hand side has to be Blank
--Remove .jpeg from the list
Then add jpeg back.

Edit:
Adding .jpeg back to the list bring back the wrong color again.. :( Blue
Last edited by Erixx haxx on Wed Feb 15, 2017 4:10 pm, edited 1 time in total.
Windows 7 Ultimate, x64-bit (SP 1) XnViewMP x64 v0.85-b-1 Port
ASUSTek P8Z77-v
i5-3570K CPU @ 3.40GHz
Memory: x16.0 GB
Samsung SSD 840 EVO 250GB ATA
NVIDIA GeForce GTX 960 @ 1177 MHz
Dedicated: 4096 MB GDDR5
User avatar
Erixx haxx
 
Posts: 312
Joined: Tue Jul 28, 2015 10:37 am

Re: 0.83: Format colors isn't working

Postby XnTriq » Wed Feb 15, 2017 4:10 pm

Erixx haxx wrote: Only way I got it working was by :
--Adding svg With No brackets[].
--Right hand side has to be Blank
--Remove .jpeg from the list
Then adding it back.

Confirmed :o
The INI entry for svg isn't enclosed in square brackets:

xnview.ini[Appearance] wrote:
Code: Select all
formatColor-0="[gif],220 235 220,0 0 0"
formatColor-1="[png],232 222 220,0 0 0"
formatColor-2="[bmp],227 227 255,0 0 0"
formatColor-3="[tiff],192 197 235,0 0 0"
formatColor-4="[tga],230 255 255,0 0 0"
formatColor-5="[iff],247 235 235,0 0 0"
formatColor-6="[sgi],247 237 242,0 0 0"
formatColor-7="[pcx],235 230 230,0 0 0"
formatColor-8="[psd],255 255 227,0 0 0"
formatColor-9="[pcd],235 215 235,0 0 0"
formatColor-10="[psp],237 208 163,0 0 0"
formatColor-11="[pict],202 202 255,0 0 0"
formatColor-12="[xpm],242 227 227,0 0 0"
formatColor-13="[xbm],216 216 216,0 0 0"
formatColor-14="[pbm],191 191 182,0 0 0"
formatColor-15="[pgm],207 207 197,0 0 0"
formatColor-16="[ppm],235 225 159,0 0 0"
formatColor-17="[ras],255 255 227,0 0 0"
formatColor-18="[wmf],187 187 187,0 0 0"
formatColor-19="[emf],212 212 212,0 0 0"
formatColor-20="[ico],217 247 227,0 0 0"
formatColor-21="[cur],217 247 227,0 0 0"
formatColor-22="[ani],217 247 227,0 0 0"
formatColor-23="[fpx],229 255 255,0 0 0"
formatColor-24="[jp2],237 237 202,0 0 0"
formatColor-25="svg,204 255 51,0 0 0"
formatColor-26="[jpeg],210 210 210,0 0 0"
User avatar
XnTriq
Moderator & Librarian
 
Posts: 4728
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 0.83: Format colors isn't working

Postby Erixx haxx » Wed Feb 15, 2017 4:20 pm

Confirmed :o

Thanks for conformation XnTriq

I had to edit my post above because it was a short lived fix.. :D

Does this work on an Hierarchy or something, because when I came back to XnView .jpeg had moved itself to the top of the list and its color
is Over-Riding svg again. :?

Really wierd..
Windows 7 Ultimate, x64-bit (SP 1) XnViewMP x64 v0.85-b-1 Port
ASUSTek P8Z77-v
i5-3570K CPU @ 3.40GHz
Memory: x16.0 GB
Samsung SSD 840 EVO 250GB ATA
NVIDIA GeForce GTX 960 @ 1177 MHz
Dedicated: 4096 MB GDDR5
User avatar
Erixx haxx
 
Posts: 312
Joined: Tue Jul 28, 2015 10:37 am

Re: 0.83: Format colors isn't working

Postby XnTriq » Wed Feb 15, 2017 4:30 pm

Erixx haxx wrote:Does this work on an Hierarchy or something, because when I came back to XnView .jpeg had moved itself to the top of the list and its color
is Over-Riding svg again. :?

I had deleted my INI before I tried your method. After a restart, [jpeg] is still at the very end of the list. I can also change the colors.
User avatar
XnTriq
Moderator & Librarian
 
Posts: 4728
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 0.83: Format colors isn't working

Postby xnview » Wed Feb 15, 2017 5:37 pm

Erixx haxx wrote:--Adding svg With No brackets[].

yes you must use svg without brackets
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26738
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.83: Format colors isn't working

Postby helmut » Thu Feb 16, 2017 10:25 pm

xnview wrote:
Erixx haxx wrote:--Adding svg With No brackets[].

yes you must use svg without brackets
As we can see in the above postings and long discussion, the current "Format colour" dialog is a mess and buggy.

@Pierre: You seem to be the only one that sees that colour in the browser for svg files while five other users don't see it. Do you really see the format colour for svg files that you have set in the browser? What is your setting in the .ini file?

Why are there two fields (text field and drop downlist)? What are these two fields for and how are they used?
User avatar
helmut
Moderator
 
Posts: 7779
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.83: Format colors isn't working

Postby XnTriq » Thu Feb 16, 2017 10:45 pm

I've since removed all other formats except for [jpeg] + [png] + svg and restarted MP. Now all formats are back: 2 × [jpeg] + 2 × svg :-|
User avatar
XnTriq
Moderator & Librarian
 
Posts: 4728
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 0.83: Format colors isn't working

Postby xnview » Fri Feb 17, 2017 8:10 am

helmut wrote:
xnview wrote:
Erixx haxx wrote:--Adding svg With No brackets[].

yes you must use svg without brackets
As we can see in the above postings and long discussion, the current "Format colour" dialog is a mess and buggy.

@Pierre: You seem to be the only one that sees that colour in the browser for svg files while five other users don't see it. Do you really see the format colour for svg files that you have set in the browser? What is your setting in the .ini file?

Why are there two fields (text field and drop downlist)? What are these two fields for and how are they used?

please send me your formatColor section?
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26738
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.83: Format colors isn't working

Postby xnview » Tue Feb 28, 2017 1:10 pm

XnTriq wrote:
xnview.ini[Appearance] wrote:
Code: Select all
formatColor-0="[gif],220 235 220,0 0 0"
formatColor-1="[png],232 222 220,0 0 0"
formatColor-2="[bmp],227 227 255,0 0 0"
formatColor-3="[tiff],192 197 235,0 0 0"
formatColor-4="[tga],230 255 255,0 0 0"
formatColor-5="[iff],247 235 235,0 0 0"
formatColor-6="[sgi],247 237 242,0 0 0"
formatColor-7="[pcx],235 230 230,0 0 0"
formatColor-8="[psd],255 255 227,0 0 0"
formatColor-9="[pcd],235 215 235,0 0 0"
formatColor-10="[psp],237 208 163,0 0 0"
formatColor-11="[pict],202 202 255,0 0 0"
formatColor-12="[xpm],242 227 227,0 0 0"
formatColor-13="[xbm],216 216 216,0 0 0"
formatColor-14="[pbm],191 191 182,0 0 0"
formatColor-15="[pgm],207 207 197,0 0 0"
formatColor-16="[ppm],235 225 159,0 0 0"
formatColor-17="[ras],255 255 227,0 0 0"
formatColor-18="[wmf],187 187 187,0 0 0"
formatColor-19="[emf],212 212 212,0 0 0"
formatColor-20="[ico],217 247 227,0 0 0"
formatColor-21="[cur],217 247 227,0 0 0"
formatColor-22="[ani],217 247 227,0 0 0"
formatColor-23="[fpx],229 255 255,0 0 0"
formatColor-24="[jp2],237 237 202,0 0 0"
formatColor-25="svg,204 255 51,0 0 0"
formatColor-26="[jpeg],210 210 210,0 0 0"

with these values i can't reproduce the problem too
Screen-2017-02-28_14-09-13.jpg
Screen-2017-02-28_14-09-13.jpg (18.36 KiB) Viewed 29 times
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26738
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 0.83: Format colors isn't working

Postby Erixx haxx » Tue Feb 28, 2017 5:49 pm

Hi:

Try this one. I used options panel to enable the format colors and .svg was already their.
I only changed its color to purple.
Code: Select all
formatColor-0="[jpeg],0 170 255,0 0 0"
formatColor-1="[gif],220 235 220,0 0 0"
formatColor-2="[png],232 222 220,0 0 0"
formatColor-3="[bmp],227 227 255,0 0 0"
formatColor-4="[tiff],192 197 235,0 0 0"
formatColor-5="[tga],230 255 255,0 0 0"
formatColor-6="[iff],247 235 235,0 0 0"
formatColor-7="[sgi],247 237 242,0 0 0"
formatColor-8="[pcx],235 230 230,0 0 0"
formatColor-9="[psd],255 255 227,0 0 0"
formatColor-10="[pcd],235 215 235,0 0 0"
formatColor-11="[psp],237 208 163,0 0 0"
formatColor-12="[pict],202 202 255,0 0 0"
formatColor-13="[xpm],242 227 227,0 0 0"
formatColor-14="[xbm],216 216 216,0 0 0"
formatColor-15="[pbm],191 191 182,0 0 0"
formatColor-16="[pgm],207 207 197,0 0 0"
formatColor-17="[ppm],235 225 159,0 0 0"
formatColor-18="[ras],255 255 227,0 0 0"
formatColor-19="[wmf],187 187 187,0 0 0"
formatColor-20="[emf],212 212 212,0 0 0"
formatColor-21="[ico],217 247 227,0 0 0"
formatColor-22="[cur],217 247 227,0 0 0"
formatColor-23="[ani],217 247 227,0 0 0"
formatColor-24="[fpx],229 255 255,0 0 0"
formatColor-25="[jp2],237 237 202,0 0 0"
useFormatColor=true
selectedColor=10 36 106
labelColor-0=255 85 0
labelColor-1=253 253 253
labelColor-2=230 0 0
labelBColor-0=24 24 24
labelBColor-1=85 0 0
labelBColor-2=25 25 25
formatColor-26="[svg],71 0 214,0 0 0"


Screen: 1
XnViewMp_v0.84_2017-02-28 12.33.00_cr.jpg

Screen: 2
XnViewMp_v0.84_2017-02-28 12.33.30_cr.jpg


As you can see It's using .jpeg color.
If I manually put it above .jpeg in the list, it starts working correctly until restart.
Windows 7 Ultimate, x64-bit (SP 1) XnViewMP x64 v0.85-b-1 Port
ASUSTek P8Z77-v
i5-3570K CPU @ 3.40GHz
Memory: x16.0 GB
Samsung SSD 840 EVO 250GB ATA
NVIDIA GeForce GTX 960 @ 1177 MHz
Dedicated: 4096 MB GDDR5
User avatar
Erixx haxx
 
Posts: 312
Joined: Tue Jul 28, 2015 10:37 am

Re: 0.83: Format colors isn't working

Postby xnview » Tue Feb 28, 2017 7:10 pm

Erixx haxx wrote: Try this one. I used options panel to enable the format colors and .svg was already their.
I only changed its color to purple.

you need to use svg not [svg]
Code: Select all
formatColor-26="svg,71 0 214,0 0 0"
Pierre.
User avatar
xnview
Author of XnView
 
Posts: 26738
Joined: Mon Oct 13, 2003 7:31 am
Location: France

PreviousNext

Return to Fixed in next test version

Who is online

Users browsing this forum: No registered users and 1 guest