INTERACT FORUM

More => Old Versions => JRiver Media Center 29 for Linux => Topic started by: mwillems on April 06, 2022, 10:47:24 am

Title: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: mwillems on April 06, 2022, 10:47:24 am
So I was kicking the tires on Spotlight, and it looked pretty cool in concept, but everything was very small for some reason.  I have JRiver set to scale 200% under the View-->Size option, but the spotlight window contents appears at 100% so everything is very small.  I don't use the embedded browser much, but clicking around, it looks like I have the same issue with all the pages that rely on the embedded browser (cloudplay, streaming, etc.). 

Not sure if there's a setting somewhere, but I couldn't find any way to trick it into scaling appropriately.  I don't recall this being an issue with the embedded browser in Windows, so I figured I should report it here.  Let me know if I should take it over to the main Spotlight thread instead.
Title: Re: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: JimH on April 06, 2022, 11:01:50 am
Try clicking in the browser window, then doing ctrl +.  That should increase the font size.
Title: Re: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: mwillems on April 06, 2022, 11:18:00 am
Try clicking in the browser window, then doing ctrl +.  That should increase the font size.

Thanks for the idea, Jim, but it didn't work for me with the embedded browser here on Linux.  Ctrl + does work in my normal browser (outside of MC), but it doesn't seem to do anything in the embedded browser windows in MC.
Title: Re: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: Awesome Donkey on April 06, 2022, 11:20:24 am
Thinking about it, I'm not sure if MC's view sizes can be applied to the embedded browsers, since they're a separate thing.

Odd that CTRL + doesn't seem to work though, maybe it's a quirk of the embedded browsers? I guess if all else fails there's potential workarounds, like perhaps embedding into the Spotlight webpage a drop down menu or something to adjust the font size?
Title: Re: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: mwillems on April 06, 2022, 11:32:08 am
Odd that CTRL + doesn't seem to work though, maybe it's a quirk of the embedded browsers? I guess if all else fails there's potential workarounds, like perhaps embedding into the Spotlight webpage a drop down menu or something to adjust the font size?

I suspect that it's a quirk of the Linux implementation of the embedded browser.  Also to be clear, it's not just the fonts, the images are also quite small. When I use Ctrl + in an external browser to change the zoom level, images also seem to increase in size, so if MC implemented a fix that relied on browser zoom it would probably work.

Given that chromium (and other browsers) have native zoom support, maybe the embedded browser code could just set the browser's own zoom level to match the View->Size setting when MC opens the browser?  I feel like an automatic setting based on the existing View->Size settings would be 90% of the value of creating a drop down, but I'm not sure what kinds of options are available for embedded browsers.
Title: Re: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: Hendrik on April 06, 2022, 11:40:18 am
On Windows, most of the time you would set your desktop scaling when you have a high DPI screen, and not touch the MC scaling much - windows desktop scaling automatically scales the browser, since it knows to apply the OS scaling.
If you were to use MC scaling, I wouldn't expect your browser to change. But I suppose we can look into applying the configured scale through the browser API.
Title: Re: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: mwillems on April 06, 2022, 11:42:38 am
On Windows, most of the time you would set your desktop scaling when you have a high DPI screen, and not touch the MC scaling much - windows desktop scaling automatically scales the browser, since it knows to apply the OS scaling.
If you were to use MC scaling, I wouldn't expect your browser to change. But I suppose we can look into applying the configured scale through the browser API.

So on Linux, for me at least, MC completely ignores the OS desktop scaling.  For example, I have my Gnome desktop set to 200% scaling, but MC renders at 100% unless I also set MC to 200%, at which point the MC UI is the correct size.  The embedded browser remains at 100%, though, even though I have both the desktop scaling and the MC scaling set to 200%. 

That explains why other platforms aren't seeing the issue, as the OS scaling is "filing the gap."
Title: Re: Spotlight and other Embedded Browser Pages Don't Scale with View->Size
Post by: bob on April 07, 2022, 10:03:11 am
So on Linux, for me at least, MC completely ignores the OS desktop scaling.  For example, I have my Gnome desktop set to 200% scaling, but MC renders at 100% unless I also set MC to 200%, at which point the MC UI is the correct size.  The embedded browser remains at 100%, though, even though I have both the desktop scaling and the MC scaling set to 200%. 

That explains why other platforms aren't seeing the issue, as the OS scaling is "filing the gap."
I'm pretty sure this has always been an issue with the embedded linux browser component for MC.