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

Program does not scale properly when using windows scaling #3

Open
danntran opened this issue Nov 9, 2022 · 1 comment
Open

Program does not scale properly when using windows scaling #3

danntran opened this issue Nov 9, 2022 · 1 comment
Assignees

Comments

@danntran
Copy link
Owner

danntran commented Nov 9, 2022

As title.

@danntran danntran self-assigned this Nov 9, 2022
@cbspace
Copy link

cbspace commented Nov 9, 2022

So after spending too much time of this I have a solution. First I tried doing an automatic scaling in the python code however I cannot find any way to update the width and height of the window via code. The solution I chose is to have 2 separate UI files and the correct file is chosen based on the screen resolution. Currently 100% and 125% scaling options are implemented. There is a placeholder for 150%.

Note: I had to remove the icon property from both the UI files as I was still having issues with the icon once it was packaged. This will need to be looked at separately.

My code in the branch called "scaling", with 3 commits (ignore the first commit which uses command line arguments):
https://github.com/cbspace/MicrolokIIDesignHelper/tree/scaling

Diff:
main...cbspace:MicrolokIIDesignHelper:scaling

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

2 participants