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

Better scaling for dialogs #359

Closed
Eric-Wainwright opened this issue Feb 17, 2021 · 19 comments
Closed

Better scaling for dialogs #359

Eric-Wainwright opened this issue Feb 17, 2021 · 19 comments
Labels
enhancement New feature or request

Comments

@Eric-Wainwright
Copy link

The KaTrain go board looks gorgeous on a 4K monitor, but some of the checkboxes, icons, and text are almost too small to see. There should be better scaling for higher resolution monitors.

KaTrain

@sanderland
Copy link
Owner

https://kivy.org/doc/stable/api-kivy.metrics.html
are sp(1) and dp(1) both 1?

@sanderland
Copy link
Owner

also how do the settings menus look? Scaling is hard!

@Eric-Wainwright
Copy link
Author

Eric-Wainwright commented Feb 17, 2021 via email

@sanderland
Copy link
Owner

I think kivy+mac is the main issue, things don't get picked up on. Possible the same as #243 ?

@Eric-Wainwright
Copy link
Author

Eric-Wainwright commented Feb 18, 2021 via email

@Eric-Wainwright
Copy link
Author

Eric-Wainwright commented Feb 18, 2021 via email

@sanderland
Copy link
Owner

It's hardcoded to aim for 1300x1000 and shrink when the monitor is too small. It is probably possible to save the last position/size in the config though.

@sanderland
Copy link
Owner

note my own resolution is 2560x1440

@Eric-Wainwright
Copy link
Author

Eric-Wainwright commented Feb 18, 2021 via email

@sanderland sanderland changed the title Better support for 4K monitors Remember window size/position Feb 18, 2021
@sanderland sanderland changed the title Remember window size/position Better scaling for dialogs Feb 20, 2021
@sanderland sanderland added the enhancement New feature or request label Feb 20, 2021
@sanderland
Copy link
Owner

Window position/size saving implemented in 2711d5b
Screenshots of poor looking dialogs would help. They're all pretty fixed size now (well, based on the 'display unit', which might be influenced by some OS settings)

@Eric-Wainwright
Copy link
Author

Eric-Wainwright commented Feb 20, 2021 via email

@sanderland
Copy link
Owner

probably take something a bit crowded like analysis/teaching settings at scaling 1 and 1.8 then

@Eric-Wainwright
Copy link
Author

General/Engine settings:

Font scale = 1.8

General 1 8

Font scale = 1.0

General 1 0

Analysis/Teaching settings:

Font scale = 1.8

Teaching 1 8

Font scale = 1.0

Teaching 1 0

@sanderland
Copy link
Owner

Wow, so basically the dialog size should scale with font size, and not display points or whatever

@Eric-Wainwright
Copy link
Author

I believe so. There should probably also be an easier way for users to customize the font scale.

@sanderland
Copy link
Owner

try KIVY_METRICS_DENSITY=1.8 as well maybe?

https://kivy.org/doc/stable/api-kivy.metrics.html

The metrics cannot be changed at runtime.

@Eric-Wainwright
Copy link
Author

Awesome!! The density setting seems to fix everything. You don't need to set the font scale if you set the density. With density = 1.6, the dialogs are nicely sized and the font size is just about perfect:

Timer settings:

image

Teaching settings:

image

AI settings:

image

General settings:

image

The only slight problem remaining is the initial window size of 1300 x 1000, but if you're now saving the last size this should be solved.

image

@sanderland
Copy link
Owner

sanderland commented Feb 23, 2021

To update instructions in #250, you can create a shortcut with different scaling using:

  • From Desktop, right-click to create a New>Shortcut.
  • Right-click on the resulting Shortcut and open its Properties.
  • Enter the following in the 'Target' box: C:\Windows\System32\cmd.exe /k set KIVY_METRICS_DENSITY=1.8 & C:[FilePathTo\katrain.exe]
  • The easiest way to find the complete and correct file path for KaTrain, is to right-click on the .exe file, open its Properties, click the Security tab and then copy the full file path you'll see there.
  • Finally, copy this instruction into the 'Start in' box: %HOMEDRIVE%%HOMEPATH%

This shortcut will allow you to run with changed scaling without affecting other applications based on kivy.

@Ryan64772
Copy link

How would you change these settings on Mac? I am having the same problem as a mac user.

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

No branches or pull requests

3 participants