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

Allow overriding OS zoom level #146

Closed
ecton opened this issue Mar 19, 2024 · 0 comments
Closed

Allow overriding OS zoom level #146

ecton opened this issue Mar 19, 2024 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Mar 19, 2024

When making a game, you might want to allow the user to select a custom UI scale. This should be applied across the entire window.

When embedding Cushy, the scale factor is just something that can be set. I see two ways of doing this:

  • Allow setting the scaling factor through a Dynamic. Once it has been set through the dynamic, changes in the DPI scaling factor will not be applied. I don't love that this approach prevents DPI scaling from being applied.
  • Add another setting to the window: Zoom level. This value would be multiplied against the scaling factor to produce the actual zoom factor of the window.

If we do both approaches, in theory any logic can be written: full override or dpi-aware zoom levels.

@ecton ecton closed this as completed in ba3a4b9 Jul 25, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant