Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-scale PC and Game Grid Text on supported Android Versions #1162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jasparigus
Copy link

@Jasparigus Jasparigus commented Dec 20, 2022

My PC's name is "AWESOMESAUCE". Whenever I would launch Moonlight the name of my PC would show up on 2 lines.
This was slightly annoying to me so I sought out to create a fix.

With this change font sizes will now automatically scale depending on the length on text on both the PC and Game Grid Views to fit longer text. This only happens for device with the minimum Android Version (O or greater).
Lower devices will still print on one line with truncated text.

I chose an arbitrary min and max font sizes but in my testing they look decent.
I am open to adjusting these however.

Testing done on 1080p Android TV.

Before
Before

After
After

Short PC name
short

Long PC name
long

Short Game name
short_game

Long Game name
long_game

Android versions (O+)

If a PC or Game's name is too long it
would wrap to multiple lines in the Grid
View which is not aesthetically pleasing.

This change adds text autoscaling to supported autoscaling to supported Android versions and limits the line length to 1 even without supported versions.
@Jasparigus Jasparigus changed the title Auto-scale PC and Game Grid Text on supported Android Version Auto-scale PC and Game Grid Text on supported Android Versions Dec 20, 2022
@Jasparigus
Copy link
Author

What is needed to get some traction on this PR?
@cgutman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant