Color filters, define hex color codes

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Color filters, define hex color codes

Post by highend »

v0308

Don't know if it's a bug or me doing something wrong...

I have this color filter:
"Created or modified today" L:ageC: <= 24 h;ageM: <= 24 h

It works fine (and it's only meant for list entries)

When I now want to define different colors right inside the definition by e.g.:
"Created or modified today" L:ageC: <= 24 h;ageM: <= 24 h>FFFFFF,74C622

1.) The colors don't change
2.) Now files are colored that don't match the time range (e.g. I have a file that got now colored which has a c + m timestamp from two weeks ago)
One of my scripts helped you out? Please donate via Paypal

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

Re: Color filters, define hex color codes

Post by admin »

"inside the definition"?

You mean normal (non-instant) color filters, and you edit them via List Management? Works here.

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

Re: Color filters, define hex color codes

Post by highend »

Nope, I tried it directly in Configuration | Color Filters :)

Seems what I've tried should only be done via the list management...
One of my scripts helped you out? Please donate via Paypal

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

Re: Color filters, define hex color codes

Post by admin »

Yes. :)

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

Re: Color filters, define hex color codes

Post by highend »

The L: and T: propagate through all following definitions (e.g. separated by OR (;)) automatically, right?
One of my scripts helped you out? Please donate via Paypal

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

Re: Color filters, define hex color codes

Post by admin »

That's the idea.

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

Re: Color filters, define hex color codes

Post by highend »

Ok, thanks!
One of my scripts helped you out? Please donate via Paypal

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

Re: Color filters, define hex color codes

Post by highend »

v0309

Mh, still doing something wrong. This time by scripting...

Code: Select all

    colorfilter("");
    colorfilter("L:ageC: <= 60 n;ageM: <= 60 n>000000,FFAF4D");
This should remove any existing filters and then apply a light orange to all items in the list that have a created or modified timestamp with less or equal to 60 minutes.

My problem:
This filter is also applied to the tree^^ In this case it's a locked mini tree.
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

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

Re: Color filters, define hex color codes

Post by admin »

I was wrong. :oops: The control selector is per definition, not per line. It does not propagate.

There was also a bug:
colorfilter("");
currently turns on the last filter if there isn't any current filter, so it's a toggle. However, acc. to Help it's supposed to turn off any filter unconditionally. Gonna fix...

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

Re: Color filters, define hex color codes

Post by highend »

At least there is a mismatch.

If I use the same colorfilter in Menu - Tools - Customize Lists - Color Filters...

It's only coloring list items, not the tree.

Only the scripting command behaves differently :)
One of my scripts helped you out? Please donate via Paypal

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

Re: Color filters, define hex color codes

Post by admin »

Are you sure? Not here...

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

Re: Color filters, define hex color codes

Post by highend »

*Hust* Only if you forgot to turn "Configuration | Color Filters | Apply color filters to the Tree" on :ninja:

I'll take it back and claim something completely different from now on^^
One of my scripts helped you out? Please donate via Paypal

Post Reply