New Colors in TC 7.55 - Your settings for them

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

New Colors in TC 7.55 - Your settings for them

Post by *Samuel »

TC 7.55 brings some new colors for Path-Bar-Control and Compare-Files. Thanks a lot Christian!
They cannot be customized in Configurations for now, so change them in "wincmd.ini".

To get the color value I currently use Paint to get the RGB values then I put them in an excel sheet.
There I calculate TCs code like this: (A1 red value, A2 green value, A3 blue value)

Code: Select all

=A1 + 256*A2 + 256*256*A3
You can use the Hex values if you put a "$" sign in front, e.g. "$FFFFFF"
You may also use this French tool or Color Cop (you can get the color for TC with the mode color PowerBuilder - Ctrl+P).

Here are my settings for Path-Bar-Control: (Image)

Code: Select all

ActiveTitle       = 12476675   (R:   3, G:  97, B: 190)
ActiveTitleText   = 16777215   (R: 255, G: 255, B: 255)
InactiveTitle     = 13864005   (R:  69, G: 140, B: 211)
InactiveTitleText = 16777215   (R: 255, G: 255, B: 255)
Here are my settings for Compare-Files inspired by Winmerge: (Image)

Code: Select all

CompareText=213
CompareBinary=213
CompareTextSel=213
CompareBinarySel=213
CompareNormalText=0
CompareNormalBack=16777215
CompareDifferenceBack=379887
CompareSelText=144721
CompareSelBack=11395825
Actually the image is a mockup for an additional background-color for differences. Not based on lines, but based on chars. (top with this color - bottom without)
Last edited by Samuel on 2010-03-26, 13:10 UTC, edited 1 time in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Samuel wrote:There I calculate TCs code like this: (A1 red value, A2 green value, A3 blue value)

Code: Select all

=A1 + 256*B1 + 256*256*C1
Maybe A1, A2, A3 instead of A1, B1, C1?
Maybe it would be better to use R, G, B instead of A1, A2, A3?
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

2Samuel: Could you please describe how the Path-Bar-Control works?

mf
Bankster - Word of the Year 2009
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

2MVV
Thx corrected it.
R, G, B
I use excel cells, so I cant use R, G, B in the formula.

2Mikefield
Its the control where you see the path. (Where breadcrumb is located.)
User avatar
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

I choose only

Code: Select all

[Colors]
CompareDifferenceBack=-2
Totalcmd.chm wrote:-2=slightly darker/lighter (depending on background color)
Thanks for this useful feature. :D
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post by *jjk »

Just for information :
those settings for Path-Bar-Control have to be put in [Colors] section of wincmd.ini, not in [Configuration].
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

theosdikaios wrote:I choose only

Code: Select all

[Colors]
CompareDifferenceBack=-2
Totalcmd.chm wrote:-2=slightly darker/lighter (depending on background color)
BTW, -2 is default value for CompareDifferenceBack so TC will use it even if this parameter is not set.
yeskky
Member
Member
Posts: 177
Joined: 2007-03-01, 05:32 UTC
Location: Jiang Su,China

Post by *yeskky »

Now you can change these settings with Ultra TC Editor directly.
Just select one of them and press Ctrl+B in Ultra TC Editor.
You need English and Russian data files updated for Total Commander 7.55 Beta 1.
Refer to this post http://ghisler.ch/board/viewtopic.php?p=198825#198825
#222405 Single user licence
User avatar
nn1k3
Member
Member
Posts: 141
Joined: 2007-02-06, 16:59 UTC

Post by *nn1k3 »

You explained that
R + 256*G + 256*256*B = N

Given N, how do I solve for R, G, B?
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Randomly choose R, G and B and if the equation does solve you guessed right. ;-)

R = N mod 256
G = (N div 256) mod 256
B = ((N div 256) div 256)

The result of div is the quotient of a division:
520 div 256 = 2
10 div 3 = 3

The result of mod is the remainder of a division:
520 mod 256 = 8
10 mod 3 = 1

http://en.wikipedia.org/wiki/Modulo_operation
User avatar
nn1k3
Member
Member
Posts: 141
Joined: 2007-02-06, 16:59 UTC

R G B to RGB and back

Post by *nn1k3 »

Thank you Samuel. All set now. FYI I implemented your advice in Excel with these formulas:
Given named ranges R_ G_ and B_ [Excel often likes the underscore for one-letter named ranges]
Calculate N_
Then back-calculate RR GG and BB

N_=R_+G_*256+B_*256*256
RR=MOD(N_,256)
GG=INT(MOD(N_/256,256))
BB=INT(N_/(256*256))
Post Reply