Color filter rule for inaccessible folders

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Antieve
Posts: 78
Joined: 02 Apr 2016 20:52

Color filter rule for inaccessible folders

Post by Antieve »

Tell me the equivalent of the "Custom file icons" rule for "Color filter"

*\ /x>Folder.red.ico //matches all inaccessible folders

Instead of changing the icon, I just want to change the color of the name text, but I couldn't find an analog of the rule.

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

Re: Color filter rule for inaccessible folders

Post by highend »

Something like this should work: B:prop:#empty:X>FFFFFF,FF0000
One of my scripts helped you out? Please donate via Paypal

Antieve
Posts: 78
Joined: 02 Apr 2016 20:52

Re: Color filter rule for inaccessible folders

Post by Antieve »

highend wrote: 14 Jul 2025 16:51 Something like this should work: B:prop:#empty:X>FFFFFF,FF0000
Unfortunately no.
The rule is easy to check, for example, in the root of the disk it should highlight only the "System Volume Information" folder (by default).

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

Re: Color filter rule for inaccessible folders

Post by highend »

It should also highlight e.g.:

Code: Select all

PerfLogs
Recovery
which it does (here) exactly like the CFI entry.

It highlights access denied folders (no read attributes for the current user)
1.png
1.png (6.47 KiB) Viewed 131 times
One of my scripts helped you out? Please donate via Paypal

Antieve
Posts: 78
Joined: 02 Apr 2016 20:52

Re: Color filter rule for inaccessible folders

Post by Antieve »

highend wrote: 14 Jul 2025 18:45 It should also highlight e.g.:

Code: Select all

PerfLogs
Recovery
On my system I have access to these folders. That's why I mentioned "System Volume Information" as a bulletproof option.
XYplorer_8zLHt9MYUb.png
XYplorer_8zLHt9MYUb.png (35.94 KiB) Viewed 110 times
This is how proposed rule looks like.
To check, the required rule I've also change the icon and we see that it is the only one that works correctly.

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

Re: Color filter rule for inaccessible folders

Post by jupe »

Did you add it to the bottom of your color filters?, make sure it is at the top of the list.

What happens if you disable color filters completely and then run this script

colorfilter("B:prop d:#empty:X>FFFFFF,FF0000");

just run it again to undo.

Antieve
Posts: 78
Joined: 02 Apr 2016 20:52

Re: Color filter rule for inaccessible folders

Post by Antieve »

jupe wrote: 14 Jul 2025 23:56Did you add it to the bottom of your color filters?, make sure it is at the top of the list.
Yes. It's at the top.

1.png
1.png (43.99 KiB) Viewed 65 times
jupe wrote: 14 Jul 2025 23:56 What happens if you disable color filters completely and then run this script
colorfilter("B:prop d:#empty:X>FFFFFF,FF0000");
In this case the result looks like the one expected.

2.png
2.png (30.39 KiB) Viewed 65 times

I see several problems
- When inserting a filter, the colors specified in it are not applied (in the second img column you can see that the original coloring is overwritten by the default black)
- If you assign colors manually with the buttons, they are applied, but since the filter itself does not work correctly, the wrong ones items are highlighted
Visually it seems that it is simply inverted...

3.png
3.png (46.09 KiB) Viewed 65 times
PS
When assigning a color to this filter, the latest x64 beta crashed several times

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

Re: Color filter rule for inaccessible folders

Post by jupe »

I see the issue, you shouldn’t have the colors at the end of the definition, remove them and set via btns instead or add it via list mgmt instead.

Antieve
Posts: 78
Joined: 02 Apr 2016 20:52

Re: Color filter rule for inaccessible folders

Post by Antieve »

jupe wrote: 15 Jul 2025 10:36 I see the issue, you shouldn’t have the colors at the end of the definition, remove them and set via btns instead or add it via list mgmt instead.
You are right, thx!
B:prop:#empty:X
+ manual color set works just fine!

highend, thx!

Post Reply