ColorsAsHex=1

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
JOUBE
Power Member
Power Member
Posts: 1498
Joined: 2004-07-08, 08:58 UTC

ColorsAsHex=1

Post by *JOUBE »

Referring to this post viewtopic.php?p=435629#p435629 (2023)
and this post viewtopic.php?p=364892#p364892 (2019)
I would ask to add the following to the [configuration] section - still in Tc11, please:

Code: Select all

ColorsAsHex=0 (0=storage as a decimal number (default), 1=as a hexadecimal number with 3 bytes in the format: $BBGGRR ) BB blue GG green RR red
It is only about the storage by the Tc. The Tc has always been able to read these colors in hex format.

I hope it's not a big deal and therefore has a chance to be implemented in Tc11.

Thanks

Joube

Edit: Typo
Last edited by JOUBE on 2023-06-23, 21:09 UTC, edited 2 times in total.
User avatar
funkymonk
Senior Member
Senior Member
Posts: 418
Joined: 2013-12-04, 09:56 UTC

Re: ColorsAsHex=1

Post by *funkymonk »

Massive support++ for this long-overdue suggestion!

It would make editing the ini much easier.
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka/Makiivka
Contact:

Re: ColorsAsHex=1

Post by *LonerD »

Support!
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
User avatar
petermad
Power Member
Power Member
Posts: 14902
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ColorsAsHex=1

Post by *petermad »

Support+++++++
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
joe910
Junior Member
Junior Member
Posts: 37
Joined: 2009-02-23, 03:05 UTC
Location: Peoria, IL USA

Re: ColorsAsHex=1

Post by *joe910 »

Support+++++++
JOUBE
Power Member
Power Member
Posts: 1498
Joined: 2004-07-08, 08:58 UTC

Re: ColorsAsHex=1

Post by *JOUBE »

Additions to the proposal:

- If ghisler(author) fears that this would result in all colors being converted to hex in the ini: this is not the case. It's just about saving colors in hex format that are saved again or newly.

- In case there are concerns about the difference between the RGB and the BGR format used in the ini (in connection with requests from users). That's not a problem either: That's the way it is and shouldn't be changed in the TC.

- but it could also go a step further by adding this: colors beginning with a # (for example: #C1C1C1) are read in RGB hex format and if ColorsAsHex=2, are also stored that way. That would then be compatible with (just as an example): https://www.google.com/search?client=firefox-b-d&q=color+%23CC7A00 and other color pickers.

Joube

PS.: I know this suggestion comes very late for Tc11, but it would be very useful and just one small step for Tc, one giant leap for all users.
User avatar
wanderer
Power Member
Power Member
Posts: 1579
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Re: ColorsAsHex=1

Post by *wanderer »

Support (++ to JOUBE's refined proposal in the post above, especially for ColorsAsHex=2).
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
hi5
Power Member
Power Member
Posts: 553
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: ColorsAsHex=1

Post by *hi5 »

+1 for RGB hex format, so much easier to edit/copy #C1C1C1
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
JOUBE
Power Member
Power Member
Posts: 1498
Joined: 2004-07-08, 08:58 UTC

Re: ColorsAsHex=1

Post by *JOUBE »

I hope that this suggestion will still be implemented in Tc11 next beta. The suggestion is mainly about the format when tc is writing to the ini.

But Tc11 should at least be able to read colors in RGB hex format if the color is specified with a leading #: #RRGGBB

Thanks in advance

joube
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48205
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ColorsAsHex=1

Post by *ghisler(Author) »

It can read them when they start with a leading $.
Unfortunately I can't implement the saving so quickly, because colors are written in various dialogs...
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1498
Joined: 2004-07-08, 08:58 UTC

Re: ColorsAsHex=1

Post by *JOUBE »

ghisler(Author) wrote: 2023-06-28, 14:27 UTC It can read them when they start with a leading $.
Yes, we all now that since many, many years but the format in this case is $BBGGRR. So the suggestion is: #RRGGBB
ghisler(Author) wrote: 2023-06-28, 14:27 UTC Unfortunately I can't implement the saving so quickly, because colors are written in various dialogs...
Ah, that wasn't clear for me. This is of course unfortunate. So, please write it on top of your update list of next version (or mayby Tc11.02). It comes from former times (...hardcoded)

Maybe you can surround all this places with a ...handlehexcolor(...). One day of hard and focused work.

Joube
Post Reply