-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: allow setting window size and position using physical units close #5228 #5381
base: dev
Are you sure you want to change the base?
Conversation
@amrbashir May I ask anything more I could do on this PR? I am willing to do more to pass this PR. |
It is just waiting for lucas review. He is a bit busy so we appreciate your patience. |
I did check it a week ago and I think we should consider a different format for specifying physical units. My first idea was to use a number for logical values e.g. |
I think @ysinsane had that before, where we add a I think |
I actually kind of like lucas's idea, although it takes more work to implement it. As for detail, I'd like to know your idea on mix of logical and physical unit, for example 100 window width and 100px window height? |
I don't feel like we should support different width and height. It doesn't make sense tbh and since it requires changes upstream I don't think we should do it now, maybe after switch to winit. For now, we can just add |
Yeah we shouldn't mix different formats for the same property. I think for v1 we could go with the unit parameters, but refactor the entire configuration format for v2. |
Close #5228
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___
)Other information