-
Notifications
You must be signed in to change notification settings - Fork 186
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
Support high resolution icons #302
Comments
Thanks for reporting: I fixed the playback settings with e514348. The main idea here is to scale fixed pixel sizes like so...
Scaling icons will be much more tricky. We have the icons as vector graphics. But they are carefully crafted for pixel alignment with 15px. So we would need to load highres version and scale down for other other scale factors. They are added as glyphs to the ImGui font-atlas, which would make the whole thing is a pain in the butt... For the cut of UI-Elements, it would be ideal if you have a precise list or a long collection of the issue. Each one is probably 2-3 minutes of work. |
Where is the atlas? or is it created from code? |
Yes, it's all created on runtime: in
|
I rethought about the icons integration: I good work around would be to export the icon-image in multiple hires version (e.g. @1.5, @2x etc) and switch between them on certain thresholds. that should pretty easy to implement. |
(might be related to issue 203)
I have a high-DPI laptop at 200% windows scaling, although text scales as expected, a number of issues seem to be happening:
I can look into this at some point, however, would be good to know if there an idea of how/where in the code DPI is supposed to be managed? Is there an abstraction, or a global multiplier all UI implementations are supposed to use?
The text was updated successfully, but these errors were encountered: