Replies: 1 comment 2 replies
-
Yes, we only have a global scale factor for the UI at this point. I am probably not understanding fully what you are trying to do, but Images should keep their aspect ratio (if set up properly)... and you can set a Is that what you were looking for? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a fairly common feature for most UI libraries I have used. Flutter's FittedBox, Avalonia's Viewbox, etc. I cannot find anything in the docs that would provide this functionality. The only scaling I can find is global to the app.
I love the promise of Rust but for my usecase, a UI based desktop game, creating a single UI and having it scale for any screen is crucial.
Your answer is likely to just use reactive sizing but my response to that is images and text won't scale properly that way and it won't maintain my desired aspect ratio. The difference between a 1080p and a 4k screen is too massive.
Beta Was this translation helpful? Give feedback.
All reactions