Color filters, define hex color codes

Things you’d like to miss in the future...
Post Reply
highend
Posts: 13327
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: 60594
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @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: 13327
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: 60594
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Color filters, define hex color codes

Post by admin »

Yes. :)

highend
Posts: 13327
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: 60594
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Color filters, define hex color codes

Post by admin »

That's the idea.

highend
Posts: 13327
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: 13327
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.
Attachments
Unbenannt.png
Unbenannt.png (17.05 KiB) Viewed 1633 times
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60594
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @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: 13327
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: 60594
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Color filters, define hex color codes

Post by admin »

Are you sure? Not here...

highend
Posts: 13327
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