Colors for custom column

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Colors for custom column

Post by BNyzjrCWDf »

Hello.

Is it possible to set colors for custom column?

I want to set the colors for my "HardLinksColored" column (and not for the "Name" column) for files that have count of hardlinks greater than 1.


Thanks.

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Colors for custom column

Post by jupe »

I am not aware of any way directly, but you could do it via SC drawing bars or circles to script it to draw a different color bar depending on the value you get, that would seem to achieve what you want.

You can paste the following into the XY address bar for more information if you are interested:

Code: Select all

help "idh_customcolumns.htm#idh_ccdrawingbars";
So your column could look like the size column pictured below with your own custom colors:

Image

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Colors for custom column

Post by BNyzjrCWDf »

I believe that it would be convenient to specify the colors for the columns as follows
column_color.JPG
To see the attached files, you need to log into the forum.

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Colors for custom column

Post by jupe »

BNyzjrCWDf wrote:I want to set the colors for my "HardLinksColored" column (and not for the "Name" column)
Although you can use instant color filters instead, you asked for it not to color the Name column, which they do, that is why I suggested colored bars because the color will only be visible in the custom column.

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Colors for custom column

Post by BNyzjrCWDf »

I need this
ewert3.JPG
not this
wer3.JPG
To see the attached files, you need to log into the forum.

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Colors for custom column

Post by jupe »

Initially I thought that you just wanted the color in the column, and you would know the value automatically by the different colors, but instead you want them both to be combined so my suggestion would be to create custom icons and then show a different one depending on the value.

You could use the following site, or another of your own choosing

https://www.iconsdb.com/black-icons/?search=number

and enter the hex color code you want for each number so they are different depending on the value, then use a custom column of type icon.

quick example:
cc.png
To see the attached files, you need to log into the forum.

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Colors for custom column

Post by BNyzjrCWDf »

Will I need to create, download and use 1024 icons?
Do I need to redraw 1024 icons if I want to change the color?
In my opinion, this is not the most convenient solution.

Also I want to set the color for junctions, mount points, symbolic links, shortcuts in the "TypeColored" custom column. I want to use the "Name" column to highlight the compressed/encrypted files.

So I need to be able to set the color for a custom columns (TypeColored, HardLinksColored).

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Colors for custom column

Post by jupe »

Of course you wouldn't download 1024 icons! You would download just the number 1, and/or the number 2, or the number 3, anyway it was just a suggestion, do whatever you want...

If you want to color items like in this screenshot, which colors the name column, not the custom column, you can use color filters or instant color filters.

Image
BNyzjrCWDf wrote:So I need to be able to set the color for a custom columns (TypeColored, HardLinksColored).
You will need to post this in Wishes if you really need it, because AFAIK its not currently possible.

BNyzjrCWDf
Posts: 15
Joined: 25 Jan 2018 20:42

Re: Colors for custom column

Post by BNyzjrCWDf »

are you purposefully trying to be dismissive?
No. Perhaps you thought so, because English is not my native language.
you would download just the number 1, or the number 2, or the number 3
What icon do I need if the file has 785 hard links?
you could start by reading the help file
Thanks for the advice. But I always read the help before writing messages on the forum.
If you want to color items like in this screenshot, which colors the name column, not the custom column, you can use color filters or instant color filters.
I know this.

In the end, I want to get this
erw54325.JPG
To see the attached files, you need to log into the forum.

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Colors for custom column

Post by jupe »

Sorry I am just trying to suggest workarounds because what you really want isn't available, read the last sentence of my previous post about making it a Wish.
BNyzjrCWDf wrote:What icon do I need if the file has 785 hard links?
I didn't realize the numbers would go that high going from your previous screenshot showing what you required, but in that case you would need 3 icons namely, 7,8,5, here is a screenshot showing that 3 icons can be visible side by side (they are in different colors but in your situation they wouldn't be) I was wrongly assuming the hard links were 1 digit because you said you were coloring any larger than 1 red, and that is what you showed in the requirement screenshot.
cc.png
To see the attached files, you need to log into the forum.

Post Reply