Bulk color value changes via XYplorer.ini...

Features wanted...
ghost zero
Posts: 840
Joined: 26 Apr 2010 17:48

Bulk color value changes via XYplorer.ini...

Post by ghost zero »

Please convert XY's interface color values to hex color values in the XYplorer.ini. Example, currently XY uses this, which I don't even know what kind of color value it is...

clrTreeSelNoFocusBack=15790320

If these values can get auto converted to hex color values in a future XY update, then it can allow us to make large color changes much easier. Since we can then easily identify the hex color values in the XYplorer.ini, and use our text editor's find/replace function to update our hex color values in bulk.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Bulk color value changes via XYplorer.ini...

Post by bdeshi »

viewtopic.php?f=5&t=16998#p146024
admin wrote:[...] It takes 24-bit color values. E.g. to set it to white you do this (16777215 = 0xFFFFFF):

Code: Select all

clrPreviewPane=16777215
The value 0 is taken to be the default color. [...]
There's an intermediate step: the RGB elements are inverted in the decimal value as BGR.
So you take a RGB hex color, flip it to BGR, then convert this to decimal, and store in the ini. And vice versa.

For example, my focused row color is FFB56A, stored in the ini as:

Code: Select all

ClrFocRow=6993407

Code: Select all

INCLUDE "_inc\dectohex.xyi";
echo dectohex('6993407'); //6AB5FF
6993407 in hex is 6AB5FF. But this is stored as BGR, where B:6A, G:B5, R:FF. So the actual RGB hex color is FFB56A.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

ghost zero
Posts: 840
Joined: 26 Apr 2010 17:48

Re: Bulk color value changes via XYplorer.ini...

Post by ghost zero »

thanks for the info. but it is a pain in the butt to work with. so my original request still stands.

also, i noticed in the XYplorer.ini that a lot of other color values are already using hex. so if XY can switch to hex for all the interface color values too, that would be great.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Bulk color value changes via XYplorer.ini...

Post by bdeshi »

ghost zero wrote:thanks for the info. but it is a pain in the butt to work with. so my original request still stands.
Yeah, I agree. The infodump is intended as help to cope in the current situation.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

ghost zero
Posts: 840
Joined: 26 Apr 2010 17:48

Re: Bulk color value changes via XYplorer.ini...

Post by ghost zero »

can we get an official word on whether this can be improved in near the future?

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Bulk color value changes via XYplorer.ini...

Post by admin »

It's done as it is for increasing loadup speed.

I think a little script (a Long/0xRRGGBB converter) could help you with your task.

ghost zero
Posts: 840
Joined: 26 Apr 2010 17:48

Re: Bulk color value changes via XYplorer.ini...

Post by ghost zero »

please at least give us an option to convert XY's interface color values to hex color values in the XYplorer.ini. it can allow us to make large color changes much easier by letting us use our text editor's find/replace function to update our hex color values in bulk.

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Bulk color value changes via XYplorer.ini...

Post by admin »

When I add the Dark Theme, I will also add the option to save, load, and share any number of user-defined themes.

ghost zero
Posts: 840
Joined: 26 Apr 2010 17:48

Re: Bulk color value changes via XYplorer.ini...

Post by ghost zero »

when will the dark theme be released?

and along with it, can you finally upgrade the XYplorer.ini to switch over to using RGB hex color values so we can use a text editor to automate making bulk color changes to our themes? example, in my scenario, i'm wishing to tweak my dark theme by shifting my various dark gray values in bulk. without being able to do this in bulk with a text editor, it would be a pain in the butt to find and tweak each value one by one.

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Bulk color value changes via XYplorer.ini...

Post by admin »

I can't see what difference the number system makes. Base 10, base 16... same thing...

PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Bulk color value changes via XYplorer.ini...

Post by PeterH »

admin wrote:I can't see what difference the number system makes. Base 10, base 16... same thing...
Hm - I think with hex you simply can "see" the color in the digits, as ffffff is white.
With 16777215 this isn't really the case.
(It's as if decimal is "encrypted" :P )

Further: at least for me it's more difficult to remember (for copy etc) such a decimal string - for the hex string it's much better.

So: for the user there are differences.
Win11 Pro 223H2 Gerrman

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Bulk color value changes via XYplorer.ini...

Post by admin »

Yes, but I would assume for a bulk color change it's more about knowing than seeing.

highend
Posts: 13317
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Bulk color value changes via XYplorer.ini...

Post by highend »

It's log vs. linear :mrgreen:
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Bulk color value changes via XYplorer.ini...

Post by admin »

You couldn't resist... :mrgreen:

ghost zero
Posts: 840
Joined: 26 Apr 2010 17:48

Re: Bulk color value changes via XYplorer.ini...

Post by ghost zero »

in the XYplorer configuration window, the colors are shown in RGB hex color values. but in the XYplorer.ini they are not shown in the same values, which makes it unnecessarily complicated to work with. besides, in the XYplorer.ini, there are already RGB hex color values used for some other things. it would be best if RGB hex color values can be used consistently for all things in the XYplorer.ini.

Post Reply