getmusicbee.com

General => MusicBee Wishlist => Topic started by: redwing on March 03, 2018, 09:28:08 PM

Title: Color & font size format function
Post by: redwing on March 03, 2018, 09:28:08 PM
How about supporting color & size format function for virtual tags?
For instance, $Format(<Title>,(255,0,0),12) would show title tag value in red color 12pt size.
This could be used for displaying various tags and also in any place where functions can be used like song info on the player bar.
Title: Re: Color & font size format function
Post by: fabulario on March 03, 2018, 10:23:17 PM
Good idea. +1
Title: Re: Color & font size format function
Post by: Sidar on March 04, 2018, 12:38:35 AM
+1
Title: Re: Color & font size format function
Post by: boroda on March 04, 2018, 08:11:04 AM
+1
Title: Re: Color & font size format function
Post by: Erik Paelman on March 04, 2018, 08:30:17 AM
+1
Title: Re: Color & font size format function
Post by: jippijip on March 05, 2018, 12:55:01 AM
+1
Title: Re: Color & font size format function
Post by: Bee-liever on March 05, 2018, 05:32:32 AM
+1
Title: Re: Color & font size format function
Post by: Steven on March 05, 2018, 06:59:16 PM
i think it will be useful to have control around this.
However i think i would implement as markup labels that are recognised in the text for a virtual tag eg.
Code
virtualTag1=<title>   {contrast: 30}[<artist>]
virtualTag2=<title>   {color: 201, 76, 76}{font: Arial bold 11}[<artist>]
the supported values would be:
Code
{color: r, g, b}
{font: name style size}
{contrast: n}
where contrast n=%value

I wont commit to implementing everywhere, at least for some time. Probably initially just the main panel file list, and sidebar playing tracks panel
Title: Re: Color & font size format function
Post by: redwing on March 05, 2018, 07:34:50 PM
Any support would be great at this point. Once implemented, it could improve later.
Title: Re: Color & font size format function
Post by: boroda on March 06, 2018, 02:45:23 PM
it would be great to have some stack (some memory) of formatted values, eg.:
Code
virtualTag2=<title>   {color: 201, 76, 76}{font: Arial bold 11}[<artist>]{color:popup}[<album>]
Title: Re: Color & font size format function
Post by: boroda on March 06, 2018, 03:38:11 PM
probably its better just {color:default} rather than 'stack'
Title: Re: Color & font size format function
Post by: Steven on March 07, 2018, 09:02:37 PM
http://musicbee.niblseed.com/V3_2/MusicBee32_Patched.zip

as mentioned the markup is currently only supported in virtual tags in the track detail/ album & tracks views of the main panel or the playing tracks list
I changed the syntax of fonts slightly

Code
{color: r, g, b}
{color: default}
{font: name; style; size}
{font: default}
{contrast: n}
{contrast: default}

eg.
Code
virtualTag2=<title>   {color: 201, 76, 76}{font: Arial; regular; 11}[<artist>]{color:default}[<album>]
Title: Re: Color & font size format function
Post by: ost on March 07, 2018, 09:56:46 PM
I've noticed one strange thing: used tag is

<Track#> · <Title> · <Time>{color: 201,76,76}{font: Amazon Ember;Regular;9}$If(<Artist>=<Album Artist>,," · ["<Artist>])

Some random tracks looks strange:

(https://i.imgur.com/OFkDclZ.png)

(https://i.imgur.com/Tzzpwdv.png)
Title: Re: Color & font size format function
Post by: Steven on March 07, 2018, 10:05:32 PM
it should be fixed now
Title: Re: Color & font size format function
Post by: ost on March 07, 2018, 10:09:58 PM
it should be fixed now

Yes, thank you, Steven!
Title: Re: Color & font size format function
Post by: redwing on March 08, 2018, 06:12:48 AM
Thanks for implementing this!

It looks like font style support is limited only to basic ones. Segoe UI's "Light", "Semibold", etc. styles are not supported.
How about allowing to enter any style as long as it's supported by the specified font? And if there's no such style for the font, it could default to regular style.
Title: Re: Color & font size format function
Post by: Steven on March 08, 2018, 07:48:47 AM
i dont know how to directly support those but you can use "Segoe UI Semibold" as the font
Title: Re: Color & font size format function
Post by: redwing on March 08, 2018, 09:44:56 AM
That works. Thanks!
Title: Re: Color & font size format function
Post by: Sizzlinol on March 08, 2018, 05:19:27 PM
Pretty great feature! Also, it would be cool if there would be support for the displayed fields in album covers view.
Title: Re: Color & font size format function
Post by: Sofocl on March 08, 2018, 07:02:56 PM
support for the displayed fields in album covers view.
+1
Title: Re: Color & font size format function
Post by: Steven on March 10, 2018, 11:05:41 AM
Pretty great feature! Also, it would be cool if there would be support for the displayed fields in album covers view.
for the next update that is supported but not for when "merge fields" is enabled
Title: Re: Color & font size format function
Post by: Steven on March 10, 2018, 06:49:23 PM
http://musicbee.niblseed.com/V3_2/MusicBee32_Patched.zip

I also included the Track Info panel, except when a field spans multiple rows. Basically anywhere the text is wrapped over multiple lines wont be supported
Title: Re: Color & font size format function
Post by: redwing on March 24, 2018, 04:03:17 PM
One issue with markup tags are they are highly dependent on a skin in use. Markup tags made from dark skins are almost useless when used with a light skin since many of colored text are unreadable on white background. It's the same for markup tags made from light skins when used in dark skins. Also there are other kinds of color-theme skins where markup tags made from either light or dark skins require some adjustments. But it is unthinkable for the user to make adjustments manually on all markup tags every time changing a skin.

How about separating markup tags from virtual tags and allow each tag to have different color code in different sets?
Say five sets are supported for markup tags. Then the user would name each set as "light", "dark", "blue", etc.
When defining a tag, it has only one name but can have five different color code for each set. If the user changes a skin, only need to select another set to activate it. Then all colored tags and text in the main panel and track info panel will change to match the skin in use.

This will also have the effect of increasing the number of available virtual tags since markup tags will be separated from virtual tags.
Title: Re: Color & font size format function
Post by: Steven on March 24, 2018, 09:49:28 PM
I appreciate the issue but wont implement any changes around the colour handling.
The contrast markup is a skin independent way to apply a different colour
Title: Re: Color & font size format function
Post by: redwing on March 25, 2018, 03:28:42 AM
The contrast markup is a skin independent way to apply a different colour

That only works if you're not using color code just like track info panel where contrast setting is natively supported for each row.
If you meant something else, show me an example code that works for both dark and light skins when using a different color from the skin-defined fg color of the text.
Title: Re: Color & font size format function
Post by: adac on November 08, 2018, 07:32:58 AM
It is also possible to set this function for the column browser?

For example, such wrong genres could be easily displayed.
Title: Re: Color & font size format function
Post by: redwing on November 08, 2018, 11:24:22 AM
It is also possible to set this function for the column browser?

For example, such wrong genres could be easily displayed.

I don't think this supports column browser entries.
I'm not sure what you're trying to achieve, but also try highlighting feature (Preferences> Tags (2)).
Title: Re: Color & font size format function
Post by: adac on November 08, 2018, 03:58:23 PM
My idea is ...

A list of available genres in the column browser.
Genres that are not grouped (Preferences> Tags (2)) should be displayed in color.

example
Hip-Hop (Grouped)
Hip Hop (not grouped = colored)
Alternative (not grouped = colored)
Alternative Rock (Grouped)
etc.

Unfortunately, rules do not work in the column browser.

Maybe someone has a different idea, but it should be marked in the Column browser

As I said only one idea, if the implementation is not possible, then it is my problem. sorry for my bad English
Title: Re: Color & font size format function
Post by: redwing on November 08, 2018, 04:30:32 PM
How about creating an auto-playlist with a rule that "Genre Category" "has no value"?
Title: Re: Color & font size format function
Post by: adac on November 09, 2018, 05:01:08 AM
ok, thank you redwing.

I just fixed it over $ IsNull (<genre category>, 1,2).
That should be enough.
Title: Re: Color & font size format function
Post by: phred on November 19, 2018, 06:46:01 PM
@Steven- is this enabled for the expanded view of artwork? If not, can it please be added to your list of requests?

Thanks.
Title: Re: Color & font size format function
Post by: DP on June 11, 2019, 05:03:06 AM
The fonts are logical and work solidly. But visually they can get lost in black and white on the screen. Would it involve too much overhead to implement a color option (just basics) for the Track Information fields?
Or even, though maybe less critical, for other text fields in the layout?
Thanks.
Title: Re: Color & font size format function
Post by: apokal on June 25, 2019, 04:01:49 PM
Italic style is not allowed i guess? Because this doesn't work for me. Do you know why? I've tried on Track Information Panel.

Code
{font: Segoe UI;italic;9,75}
Title: Re: Color & font size format function
Post by: Steven on June 25, 2019, 06:34:52 PM
Italic style is not allowed i guess? Because this doesn't work for me. Do you know why? I've tried on Track Information Panel.

Code
{font: Segoe UI;italic;9,75}
working fine here except i needed to use:
Code
{font: Segoe UI;italic;9.75}
Title: Re: Color & font size format function
Post by: apokal on June 25, 2019, 06:55:59 PM
Other styles works fine. What is the problem you think? I'm using the latest version.
Title: Re: Color & font size format function
Post by: psychoadept on June 25, 2019, 07:29:14 PM
Looks to me like the number is just not localized, so use . instead of , as a separator.
Title: Re: Color & font size format function
Post by: apokal on June 25, 2019, 07:39:07 PM
I don't think it's a format issue.

No problem with these:
Code
{font: Segoe UI;Regular;9,75}
{font: Segoe UI;Bold;9,75}
{font: Arial;Regular;9,75}
{font: Arial;Bold;12}

there is something wrong with italic thing:
Code
{font: Segoe UI;italic;9,75}
Title: Re: Color & font size format function
Post by: phred on June 25, 2019, 07:50:01 PM
working fine here except i needed to use:
Code
{font: Segoe UI;italic;9.75}
Did you try Steven's and psychoadept's suggestion of changing the comma to a period in the font size?
Title: Re: Color & font size format function
Post by: apokal on June 25, 2019, 07:51:29 PM
working fine here except i needed to use:
Code
{font: Segoe UI;italic;9.75}
Did you try Steven's and psychoadept's suggestion of changing the comma to a period in the font size?

Yes. Nothing changed.
Title: Re: Color & font size format function
Post by: apokal on June 28, 2019, 12:56:35 PM
Problem solved.

Code
{font: Segoe UI;ıtalic;9.75}

My OS language is Turkish. I've changed italic to ıtalic.. "ı" is a letter of Turkish alphabet. Now all problems are gone.  ;)
Title: Re: Color & font size format function
Post by: johnmillsjr on April 20, 2020, 06:34:54 AM
@Steven- is this enabled for the expanded view of artwork? If not, can it please be added to your list of requests?

Thanks.

I'm having issues bolding A tag in a virtual tags in Album Covers View as well. No font arguments get applied to Album Covers View- even when 'Use custom Font' is unchecked
Title: Re: Color & font size format function
Post by: johnmillsjr on May 09, 2020, 07:54:28 AM
I don't think it's a format issue.

No problem with these:
Code
{font: Segoe UI;Regular;9,75}
{font: Segoe UI;Bold;9,75}
{font: Arial;Regular;9,75}
{font: Arial;Bold;12}

there is something wrong with italic thing:
Code
{font: Segoe UI;italic;9,75}

Is something like this possible? it doesn't change the fonts at all

(https://i.imgur.com/PXNR0j3.jpg)