HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: yetanotherid on 2019-01-22 09:14:53

Title: Facets vs Playlist
Post by: yetanotherid on 2019-01-22 09:14:53
It's only a little thing, but if there's a way to change it, I've not found the option.
On the left of the attached screenshot is a Facets column. On the right is a Playlist column. For the Facets columns, if part of the Title is wrapped in brackets, it's automatically dimmed. For the Playlist columns that doesn't happen.
I think I prefer the Playlist display, but there appears to be an opportunity for increased consistency here. Or am I missing something? I'm running XP.

Cheers.
Title: Re: Facets vs Playlist
Post by: Case on 2019-01-22 09:40:42
The dimming is a hard-coded feature in Facets. I'm pretty sure it isn't configurable. You can simulate it in playlist view with titleformat by using $replace to add dimming and brightening codes to brackets.
Title: Re: Facets vs Playlist
Post by: anamorphic on 2019-01-22 10:15:32
^ Or you could go the other way and remove the dimming in Facets (and SimPlaylist if you use it). Personally I stop it dimming track titles with rounded brackets as they are usually part of the song title, while leaving square brackets dimmed and renaming tracks that are not part of the song title to use them instead - '[Live]', '[Remix]', etc.

Code: [Select]
$replace(%title%,'(','>>(',')',')<<')

Cheers ;)
Title: Re: Facets vs Playlist
Post by: yetanotherid on 2019-01-22 11:19:21
Thanks guys, I tried adjusting the brightness myself but couldn't get it to work. The method anamorphic posted works a treat, but while I'm here...

anamorphic,
I'm not sure why the method you posted changes the brightness of the contents of the brackets, and not just the brackets themselves. Is there something unique about bracket highlighting or am I missing the obvious?

Cheers.

Edit: Ah....maybe I did miss the obvious.
I guess anamorphic's method would ultimately change (some text in brackets) to >>(some text in brackets)<<. Doh!

I tried this with a Facets column:
>>>%artist%
and the result was the same as this:
>>>%artist%<<<
so I assume the following means "end highlighting"
<<<
but it's not required for the highlighting to work?  I just want to make sure I understand.

Thanks.
Title: Re: Facets vs Playlist
Post by: anamorphic on 2019-01-22 11:58:42
I'm not sure why the method you posted changes the brightness of the contents of the brackets, and not just the brackets themselves. Is there something unique about bracket highlighting or am I missing the obvious?
It does both. It is assumed where there is an opening bracket, there will also be a closing bracket. So ...

(Live) becomes >>(Live)<<

And any text within the highlight characters gets brighter (or dimmed if the reverse).

Quote
Also, I can't quite get my head around highlighting like >>this, compared to highlighting like >>this<<.

It is only the latter ('>>this<<') and that is the only way. Both opening and closing brackets are being replaced. Have a look again at the code ;)

Edit: Ah, you edited your understanding. ;) Yes, I guess if there are no "end highlighting" brackets it simply ends where the column ends, but that is not the ideal way.

Cheers
Title: Re: Facets vs Playlist
Post by: yetanotherid on 2019-01-22 12:35:26
Yeah, I feel a little mentally challenged for not wrapping my brain around it at first.... now it does seem obvious.

I blame Avisynth, because I've been using it bit lately and it won't forgive a comma out of place, so I was in a mind-set where if highlighting was supposed to be done like >>>this<<<, it couldn't possibly work like >>>this, and therefore I must be missing something. :)

Thanks for you help!
Title: Re: Facets vs Playlist
Post by: Daeron on 2019-01-22 21:12:58
Edit: disregard, thought this was about Facets vs Columns UI filter panels. I'll leave the code below in case it's useful for someone, though.

You can achieve similar dimming using $replace() and $rgb() in CUI filter panels. Something like:
Code: [Select]
$puts(A,$rgb(0,0,0,0,0,0))
$puts(B,$rgb(255,0,0,255,0,0))

$replace(%title%,
'(',$get(B)'(',
')',')'$get(A),
'[',$get(B)'[',
']',']'$get(A)
)