Page 1 of 1
ColorsAsHex=1
Posted: 2023-06-23, 15:22 UTC
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
Re: ColorsAsHex=1
Posted: 2023-06-23, 19:14 UTC
by funkymonk
Massive support++ for this long-overdue suggestion!
It would make editing the ini much easier.
Re: ColorsAsHex=1
Posted: 2023-06-23, 20:13 UTC
by LonerD
Support!
Re: ColorsAsHex=1
Posted: 2023-06-24, 02:08 UTC
by petermad
Support+++++++
Re: ColorsAsHex=1
Posted: 2023-06-24, 16:35 UTC
by joe910
Support+++++++
Re: ColorsAsHex=1
Posted: 2023-06-25, 08:09 UTC
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.
Re: ColorsAsHex=1
Posted: 2023-06-26, 17:00 UTC
by wanderer
Support (++ to JOUBE's refined proposal in the
post above, especially for ColorsAsHex=2).
Re: ColorsAsHex=1
Posted: 2023-06-26, 20:37 UTC
by hi5
+1 for RGB hex format, so much easier to edit/copy #C1C1C1
Re: ColorsAsHex=1
Posted: 2023-06-28, 12:05 UTC
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
Re: ColorsAsHex=1
Posted: 2023-06-28, 14:27 UTC
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...
Re: ColorsAsHex=1
Posted: 2023-06-28, 17:03 UTC
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