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

Interface: Fractional Scale #6797

Closed
ghost opened this issue May 26, 2018 · 10 comments
Closed

Interface: Fractional Scale #6797

ghost opened this issue May 26, 2018 · 10 comments
Labels
component: interface This is an interface issue enhancement Issue would be a good enhancement; we accept Pull Requests! stale Stale issues

Comments

@ghost
Copy link

ghost commented May 26, 2018

I always double the size of the interface, but it would be nice to have more options available.

Ideas:

  • more percentage options: 125%, 150%, 175%, etc.
  • a horizontal bar to increase/decrease the size instead of a list, I've seen on other games and it's a intuitive way of changing
@PeterN
Copy link
Member

PeterN commented May 26, 2018

Would be nice. Currently GUI scaling works based on zoom levels which is why only powers of two are possible.

@nielsmh
Copy link
Contributor

nielsmh commented May 29, 2018

Another upvote from me, on my 22 inch 1920x1080 display the default UI scale is a bit too small, but the double scale takes up too much space.

I think one way to achieve this as-is would be to "simply" draw new UI graphics in e.g. 125% or 150% scale, and perhaps use a True Type font in somewhat larger size. None of the sprite art will scale nicely in non-integer amounts anyway.

@andythenorth
Copy link
Contributor

125% would suit me right down to the ground, but I don't know if the pixel icons will upscale nicely for arbitrary multipliers.

@nielsmh
Copy link
Contributor

nielsmh commented May 29, 2018

An experiment worth trying might be to just add some interior padding on icon-buttons to make them larger targets on screen, without actually scaling the icon at all? I think that might just work for 125%, together with a larger font.

@nielsmh
Copy link
Contributor

nielsmh commented May 29, 2018

Here's a quick and dirty test of how the main toolbar looks with a bit of padding added to all the buttons. I would certainly play with this.

image

@ghost
Copy link
Author

ghost commented May 30, 2018

That's a good idea, some padding would be nice indeed, it looks more organized, I like it!

@J0anJosep
Copy link
Contributor

@nielsmh I wrote the code for adding such padding, even providing the user a GUI for selecting the size for the buttons, the size for the height of elements on the lists and choosing the fonts and their sizes.
I also added an autosizing option, where the program automatically sets the scaling for GUI sprites and the sizes of the rest of the elements of the GUI.
The result is good enough: I can switch between screen resolutions at ease without worrying about font sizes and sprites. The only thing I miss is that 100%-200%-400% GUI sprites aren't enough for a smooth transition between all resolutions (from 640x400 to 4k resolution).

@nielsmh nielsmh added component: interface This is an interface issue enhancement Issue would be a good enhancement; we accept Pull Requests! labels Jun 7, 2018
@stale
Copy link

stale bot commented Jan 24, 2019

This issue has been automatically marked as stale because it has not had any activity in the last two months.
If you believe the issue is still relevant, please test on the latest nightly and report back.
It will be closed if no further activity occurs within 7 days.
Thank you for your contributions.

@JohnTheCoolingFan
Copy link

Normal size is too small for me to be readable and double size is too big to be comfortable, I would really appreciate if we had more fractional UI scaling

@LordAro
Copy link
Member

LordAro commented Dec 10, 2022

Good news, this has already been completed in #10114 - you can try it now in 13.0-beta2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue enhancement Issue would be a good enhancement; we accept Pull Requests! stale Stale issues
Projects
None yet
Development

No branches or pull requests

6 participants