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

UI doesn't respond to Windows scaling #45

Open
3ternal opened this issue Dec 5, 2023 · 2 comments
Open

UI doesn't respond to Windows scaling #45

3ternal opened this issue Dec 5, 2023 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@3ternal
Copy link

3ternal commented Dec 5, 2023

There's one problem that I've noticed with a lot of smaller Windows apps, and I never quite figured out what causes it.

In Windows 10's Display Settings, if you change the scaling to something other than 100%, this app doesn't seem to adjust with it. Below is how it appears at 175% scaling (note that the text is blurry).

2023-12-05_10-41-14

And here's how it looks at 100% scaling.

2023-12-05_10-41-32

(Desktop scaling is useful for 4k monitors, otherwise the icons and text become way too tiny).

Most programs are able to account for this, but I've noticed that a lot of FOSS/freeware programs become blurry instead of scaling correctly (even large FOSS projects like GIMP and Inkscape suffer from this, if I recall correctly).

Is there a reason why scaling never seems to work correctly? It would be a major UI improvement if it were possible to get this working, but I'm guessing there's some reason why it isn't as easy as it looks.

@mcmonkey4eva mcmonkey4eva added enhancement New feature or request bug Something isn't working labels Dec 5, 2023
@mcmonkey4eva
Copy link
Member

Scaling in this case would mainly be the job of Windows Forms to do properly (KeyboardChatterBlocker's UI is just a default WinForms app with content added), and Microsoft didn't implement their own scaling system into winforms.

So... the reason most FOSS UIs don't scale would be we don't make our own UI libs and instead just trust the big corps to make libraries to work properly within their own software, but, uh...
I imagine a modern WebUI setup would scale properly (ie one that just embeds an entire fat web browser to display a UI with html/css/js) albeit with the downside that embedding web browsers tends to eat massive amounts of RAM and a few percent of CPU at idle.

@3ternal
Copy link
Author

3ternal commented Dec 6, 2023

I see, thanks for the explanation.

Yeah, that makes sense - I can see why embedded web browsers keep showing up in desktop apps, even though it really shouldn't be necessary. Very unfortunate that Microsoft didn't handle this properly, but at least I know why it happens now.

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

No branches or pull requests

2 participants