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

Fix osx notification size #437

Merged
merged 2 commits into from
Oct 31, 2017

Conversation

blurfl
Copy link
Collaborator

@blurfl blurfl commented Oct 25, 2017

OSX screen resolution makes popups h- and v-size too to small to read content. Use size_hint to scale popup to the screen size, special case for darwin to avoid affecting other platforms.

Some gcode creation programs sprinkle space runs within the gcode lines. This will condense all runs to a single space.
OSX screen resolution makes popups h- and v-size too to small to read content. Use size_hint to scale popup to the screen size, special case for darwin to avoid affecting other platforms.
@BarbourSmith
Copy link
Member

❤️ ❤️ ❤️

Excellent!

This feels like a mistake on my part to have used pixel specific numbers in the first place. Is there any reason we shouldn't use size hint on every platform?

@blurfl
Copy link
Collaborator Author

blurfl commented Oct 25, 2017

Popup doesn't understand the pixel specific (dp, sp) sizes, so this is the only universal way to control the size. Not sure about the other platforms, so I special-cased it. Getting rid of the special case would be cleaner 😉

@BarbourSmith
Copy link
Member

Got it.

I agree, let's use the new method for all OS's. I think that's how Kivy would have wanted us to do it 😀

@BarbourSmith BarbourSmith merged commit fc4e9f3 into MaslowCNC:master Oct 31, 2017
@blurfl blurfl deleted the fix-OSX-notification-size branch January 5, 2018 22:45
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

Successfully merging this pull request may close these issues.

2 participants