Option to change preview background and text color...

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

ghost zero
Posts: 352
Joined: Mon Feb 05, 2007 8:26 pm

Post by ghost zero » Mon Aug 04, 2008 9:08 am

i just tried modifying...

[Browser]
TextBackColor=
TextColor=

but it doesnt change anything in the preview pane for text documents...

User avatar
xnview
Author of XnView
Posts: 33636
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Mon Aug 04, 2008 9:19 am

It's TxtForeColor & TxtBackColor!
Pierre.

ghost zero
Posts: 352
Joined: Mon Feb 05, 2007 8:26 pm

Post by ghost zero » Mon Aug 04, 2008 11:39 am

works great, thanks!

BTW: is there a way to change font style and size for text preview?

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Snag---

Post by Clo » Mon Aug 04, 2008 4:36 pm

:arrow: Pierre

:) Good evening,

• I tested just now as :
TxtForeColor=#8A1D18 —> Brown
TxtBackColor=255 255 213 —> Cream
That doesnt work as expected, the text is black and the BG is full red… :(
- Moreover, the font is still the crappy hard-coded MS Sans Serif, hence 29 upper ANSI characters are not supported
and shown as thick black “pipes” |

    Image

- Pierre, what about the Dina programming complete font I send you at least twice, free to use ?

ghost zero wrote
BTW: is there a way to change font style and size for text preview?
• Looking at the above, obviously, nope !
- But it could be a useful option, of course…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

User avatar
ouistiti
Posts: 353
Joined: Mon Oct 25, 2004 7:28 pm
Location: Belgique
Contact:

Post by ouistiti » Mon Aug 04, 2008 9:04 pm

:arrow: Pierre

- I can confirm the issue here, using the Clo's values but both as normal decimal code like :
TxtBackColor=255 255 213
TxtForeColor=138 29 24
- If I invert the foreground and background colours, I get the opposite of the Clo's image above, say :  Red text and black BG.
Moreover, the font is still the crappy hard-coded MS Sans Serif…
- Yes it is, unfortunately. I guess that the time has come to change that antiquity for a decent complete font,
as suggested n… times.

Friendly

Paul
L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Crappy coding

Post by Clo » Mon Aug 04, 2008 10:02 pm

:arrow: ouistiti

:) Hello Paul !

• It works with my values you calculated “by complements” like :
TxtBackColor=14024703
TxtForeColor=1580426
• This coding is a pain in the neck, and I don't understand why the others are not supported in the whole INI,
but only here and there, that's incoherent.
- Moreover, plain decimal code, HTML and reverse HTML are easier to set, especially for an option
added by hand in the INI, and needed by average users as well…
I guess that the time has come to change that antiquity for a decent complete font…
{ Sigh…} May God hear your prayer!
- Even if that needs to distribute Dina with the programme, it's not a big deal, and just D&D it on the
<…\Windows\Fonts> folder installs it automatically (with XP, a Hacker's trick, thanks Roman !).

:mrgreen: Friendly,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

Post Reply