Color code format in TC ini files

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
funkymonk
Senior Member
Senior Member
Posts: 499
Joined: 2013-12-04, 09:56 UTC

Color code format in TC ini files

Post by *funkymonk »

There is a lot of color configurations in TC's ini file.
However, storing the colors as decimal value -- as it currently is -- makes manual editing very inconvenient.

It would be great if TC could accept the #RRGGBB format for colors...

(Or any other format where the r/g/b components are clearly separated from each other.)
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Re: Color code format in TC ini files

Post by *Gral »

If i remember correctly already accept BGR in "$BBGGRR" form
(Although i agree that #RRGGBB would be better - easy to copy from any standard color picker or graphic editor)
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Color code format in TC ini files

Post by *Stefan2 »

https://www.ghisler.ch/board/viewtopic.php?p=346108

You can use HTML RGB-HEX color code but in BGR notation in wincmd.ini.

Example:
Blue -as- RGB => #0000FF
Blue -as- BGR => FF0000
Delphi/TColor => $FF0000

Now use $FF0000
-or-
Decimal => (Blue*65536) + (Green*256) + Red
FF0000 => FF=255 , 00=0 , 00=0
Decimal => (255*65536) + (0*256) + 0 ==> 16711680)


See help > ini file settings >> search for RGB or for BackColor



 
User avatar
funkymonk
Senior Member
Senior Member
Posts: 499
Joined: 2013-12-04, 09:56 UTC

Re: Color code format in TC ini files

Post by *funkymonk »

Right, Delphi uses the $bbggrr notation. I could have guessed.
Thank you!
Post Reply