More > JRiver Media Center 25 for Windows

NEW: Tooltip and File Info Customization Improvements

(1/13) > >>

Matt:
In 25.0.87, we've significantly improved the ability to customize tooltips in Standard View and file info panels in Theater View.

Inline Images in Text

As a first step, we've been working on supporting inline images in the text strings, to replace the hard to use font-based icons, and also lift some of its limits (ie. fonts can only be one color).
There will be a new folder for these images in Media Center 25\Data\Tooltip, and the images need to be PNG format - preferably with transparency so they look nice.

You'll then be able to do this:

--- Code: ---Text <img src="tooltip:DVDLogo"> More Text
--- End code ---

The image will be nicely sized to fit the text size and make a nice looking inline image.
If you want images in a different size, you can specify a size as well:

--- Code: ---Text <img src="tooltip:DVDLogo" size="64x64"> More Text
Text <img src="tooltip:DVDLogo" width="64" height="64"> More Text
Text <img src="tooltip:DVDLogo" width="64"> More Text
Text <img src="tooltip:DVDLogo" height="64"> More Text

--- End code ---

If both width and height are specified (or "size" is used), that'll be the absolute size of the image, if one of the dimensions is missing it'll calculate it based on the aspect ratio of the image.

There is an additional expermimental parameter, scale="0", which suppresses scaling the image to the current MC scale, which might be useful in Theater View, as that has its own scale.

We'll start by adding a DVDLogo.png file to the build. We'll add more images in coming builds!

Enjoy :)

Edit Note:
Updated to the new syntax, the old one has been replaced.

Moe:
Awesome!!

What image formats are you going to support?  Will we be able to set image dimensions (this would be important if you support SVG images)?


--- Quote ---Any string on a newline found with ( )
--- End quote ---

Does this mean we will be limited to one image per line?

Matt:

--- Quote from: Moe on July 30, 2019, 11:51:51 am ---What image formats are you going to support?  Will we be able to set image dimensions (this would be important if you support SVG images)?
--- End quote ---

We'll start by just supporting PNG.


--- Quote ---Does this mean we will be limited to one image per line?
--- End quote ---

Yes, one per line and no text on that line.

Hendrik:
Don't worry, I'll punt Matt until he actually makes it useful, inline images scaled to the text line height, so it behaves much like the font stuff, just less annoying. The syntax in use is also a Work in Progress and might change, so we can add parameters.

Moe:

--- Quote ---Don't worry, I'll punt Matt until he actually makes it useful, inline images scaled to the text line height, so it behaves much like the font stuff, just less annoying. The syntax in use is also a Work in Progress and might change, so we can add parameters.
--- End quote ---

Haha, thanks.  My first impression wasn't great after reading Matt's response.  Thanks for implementing this.

Navigation

[0] Message Index

[#] Next page

Go to full version