INTERACT FORUM

More => Old Versions => JRiver Media Center 22 for Windows => Topic started by: A.K. on August 12, 2016, 11:55:30 am

Title: Lighter font inside brackets
Post by: A.K. on August 12, 2016, 11:55:30 am
is it possible to display text in brackets in lighter font?

Example (album): Tyranny and mutation (remastered)
Or (track name): Buck's Boogie [Studio Version] [Bonus]
Title: Re: Lighter font inside brackets
Post by: blgentry on August 13, 2016, 03:35:27 pm
You can alter the thumbnail text to show fonts the way you want them, using HMTL font properties.  Here's an example (which I stole from a recent posting by marko):

<font color="a3a3a3">Your text goes here</font>

If these square brackets are already embedded inside your fields (like Name or Album), you would have to do some expression language magic to make this happen.  My first blush at this is something like:

replace([Album],/[,<font color="a3a3a3">/[)
and
replace([Album],/],</font>/])

This is untested, but should give you the right idea.  This will work for thumbnail text.  If you are wanting to see this in the track details display, or Playing Now, I guess I'd make new calculated fields (like [Album Display]) and do the replacements above inside those new fields.

It's certainly not an easy answer, but if you really want it, I think it can probably be done.

Brian.
Title: Re: Lighter font inside brackets
Post by: A.K. on August 14, 2016, 02:40:33 am
Thanks. Where do I copy those codes? Is it "Customize view>Edit>Expression>Expression to display"?
Title: Re: Lighter font inside brackets
Post by: blgentry on August 14, 2016, 07:27:27 am
If that's where you want to see them (the top display area), then give it a try.  I'm not sure if the top area uses HTML display codes, but almost the entire rest of the interface does, so it's worth a try.

Brian.
Title: Re: Lighter font inside brackets
Post by: marko on August 14, 2016, 08:59:41 am
I'm pretty sure that back slash needs to be escaped...

<font color="a3a3a3">Your text goes here<//font>

which would mean that the tail end of the replace expression would be

replace([Album],/],<//font>/])

I can't test right now, but if it doesn't work, try doubling up the backslashes that close the <font> code, as shown above.
Title: Re: Lighter font inside brackets
Post by: A.K. on August 14, 2016, 11:52:45 am
Thanks but I have no idea what you guys are talking ::)  I tried to paste some of those codes  in "Expression to display" and "Expression to group" boxes, but nothing happened. It's not a big deal anyway, but would look bit cleaner when there's long album and filenames with all those (Featuring this and that artist) or [Remastered mega deluxe edition CD 1 of 7].  :)