INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Lighter font inside brackets  (Read 3385 times)

A.K.

  • Junior Woodchuck
  • **
  • Posts: 71
Lighter font inside brackets
« 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]
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Lighter font inside brackets
« Reply #1 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.
Logged

A.K.

  • Junior Woodchuck
  • **
  • Posts: 71
Re: Lighter font inside brackets
« Reply #2 on: August 14, 2016, 02:40:33 am »

Thanks. Where do I copy those codes? Is it "Customize view>Edit>Expression>Expression to display"?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Lighter font inside brackets
« Reply #3 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.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9166
Re: Lighter font inside brackets
« Reply #4 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.

A.K.

  • Junior Woodchuck
  • **
  • Posts: 71
Re: Lighter font inside brackets
« Reply #5 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].  :)
Logged
Pages: [1]   Go Up