-
Notifications
You must be signed in to change notification settings - Fork 232
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
Comments
https://kivy.org/doc/stable/api-kivy.metrics.html |
also how do the settings menus look? Scaling is hard! |
Yes, scaling is hard. :-( But, apps looks beautiful on my 4K monitor. I think these monitors will become more common as the prices drop.
See the attached png files. The Settings menu is scaled and takes up the full height of the window, so it seems fine.
The Analysis menu and the dialogs are not scaled, and they appear too small. They are fully functional, however.
Thanks,
-Eric
… On Feb 17, 2021, at 2:52 PM, Sander Land ***@***.***> wrote:
also how do the settings menus look? Scaling is hard!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#359 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGWRWVIENNWJGOSXGLP2UZTS7Q3AFANCNFSM4XZBCLPA>.
|
I think kivy+mac is the main issue, things don't get picked up on. Possible the same as #243 ? |
Yes, sounds like the same issue as #243.
I had partial success by overriding the Kivy env variable in the command line.
————————————————
set KIVY_METRICS_FONTSCALE=1.8
"C:\Games\Go\KaTrain\KaTrain.exe”
————————————————
More discussion about it in this thread <https://answers.microsoft.com/en-us/windows/forum/all/how-to-create-permanent-environment-variable-but/cc931c15-1702-4dab-a32c-5846c6ef7121>. It gives nice control over the font and icon size in KaTrain:
However, the downside is that the small dialogs appear even worse. Is there a Kiva variable to control the window size? If not, maybe you could control the size within KaTrain. Note that the main window also opens up very small initially.
Regards,
-Eric
… On Feb 18, 2021, at 2:14 AM, Sander Land ***@***.***> wrote:
I think kivy+mac is the main issue, things don't get picked up on. Possible the same as #243 <#243> ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#359 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGWRWVJN6DQEVMTBPASKOLLS7TK7LANCNFSM4XZBCLPA>.
|
Note that I’m using a PC, not a Mac. I just download the Windows .exe.
…-Eric
On Feb 18, 2021, at 2:14 AM, Sander Land ***@***.***> wrote:
I think kivy+mac is the main issue, things don't get picked up on. Possible the same as #243 <#243> ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#359 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGWRWVJN6DQEVMTBPASKOLLS7TK7LANCNFSM4XZBCLPA>.
|
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. |
note my own resolution is 2560x1440 |
My resolution is 3840 x 2160. It would be nice if KaTrain remembered the last window size. You could also allow user control of the dialog size, which might fix the font problem.
… On Feb 18, 2021, at 2:03 PM, Sander Land ***@***.***> wrote:
note my own resolution is 2560x1440
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#359 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGWRWVNSJ7GLQDZKTQQLPKDS7V6A3ANCNFSM4XZBCLPA>.
|
Window position/size saving implemented in 2711d5b |
Great. I won’t be able to test yours changes until the next release.
Do you want screenshots of all the dialogs in my current build or the next build? What font scaling should I use? I thought 1.8 looked best.
…-Eric
On Feb 20, 2021, at 4:29 AM, Sander Land ***@***.***> wrote:
Window position/size saving implemented in 2711d5b <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)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#359 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGWRWVLXKLB5VGY2CUXYKVTS76MJ5ANCNFSM4XZBCLPA>.
|
probably take something a bit crowded like analysis/teaching settings at scaling 1 and 1.8 then |
Wow, so basically the dialog size should scale with font size, and not display points or whatever |
I believe so. There should probably also be an easier way for users to customize the font scale. |
try KIVY_METRICS_DENSITY=1.8 as well maybe? https://kivy.org/doc/stable/api-kivy.metrics.html
|
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: Teaching settings: AI settings: General settings: 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. |
To update instructions in #250, you can create a shortcut with different scaling using:
This shortcut will allow you to run with changed scaling without affecting other applications based on kivy. |
How would you change these settings on Mac? I am having the same problem as a mac user. |
KaTrain now supports setting KIVY options via command line:
For example, start
|
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.
The text was updated successfully, but these errors were encountered: