Skip to content
New issue

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

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

Already on GitHub? # to your account

Display needs to be magnifiable #53

Closed
BartMassey opened this issue Nov 26, 2020 · 5 comments
Closed

Display needs to be magnifiable #53

BartMassey opened this issue Nov 26, 2020 · 5 comments
Labels
web Related to running Egui on the web

Comments

@BartMassey
Copy link

Either ctl-scrollwheel or ctl-shift-+ needs to work to magnify the UI as a whole. This is pretty much a necessity both for accessibility (my vision is terrible) and for hi-DPI screens (I'm using a 4K monitor). If I understand correctly, the decision to work in screen coordinates may make this hard: however, it's a must-have for any application that is intended for widespread web deployment.

@emilk
Copy link
Owner

emilk commented Nov 27, 2020

This is a great point, and actually should not be too hard to implement. I already have a slider for scaling up the UI, so hooking it up to the appropriate events shouldn't be too much work.

@emilk emilk added the web Related to running Egui on the web label Nov 27, 2020
@BartMassey
Copy link
Author

Sweet!

@emilk emilk closed this as completed in 8de74e4 Nov 28, 2020
@actionless
Copy link

any chance to get dpi configurable also for desktop backends? (for example via optional env var)

@emilk
Copy link
Owner

emilk commented Feb 24, 2022

@actionless
Copy link

actionless commented Feb 24, 2022

@emilk my point was what in case of browser backend user can change the scale themselves by using Ctrl+Scroll or such

while on desktop scale could be changed only if the developer will add some custom code for that, so having env var to configure it (like in GTK or Qt) would be useful

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
web Related to running Egui on the web
Projects
None yet
Development

No branches or pull requests

3 participants