-
-
Notifications
You must be signed in to change notification settings - Fork 674
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
[widget audit] toga.Label #1799
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
bb522f4
Update tests for label.
freakboy3742 7ff8548
Add Android text alignment probe, and support for text justification.
freakboy3742 4363a98
Correct label implementation on iOS.
freakboy3742 af06298
Migrate label tests to pytest.
freakboy3742 71b523c
Update documentation for Label.
freakboy3742 35f3f6c
Add changenote for label bugfix.
freakboy3742 0a83350
Add changenote for Label audit.
freakboy3742 4238cb6
Add GTK alignment probe.
freakboy3742 d0b3da0
Update widget support chart.
freakboy3742 2550362
Merge branch 'audit-button' into audit-label
freakboy3742 4476d98
Merge branch 'audit-button' into audit-label
freakboy3742 1d5f74e
Merge branch 'main' into audit-label
mhsmith 4691de8
Tighten up Android alignment tests
mhsmith 1b70eee
Remove change note for issue which may not be completely fixed yet
mhsmith cdedf68
Remove unnecessary skips in base probes
mhsmith 0f798cc
iOS: round up size in Label.rehint to prevent lines being omitted
mhsmith 025259d
Add empty label height test
mhsmith f2fb171
Remove the use of shadow handling in label.
freakboy3742 28d3704
Add test resilience against changes in text length.
freakboy3742 572b07b
Correct handling of empty labels on iOS.
freakboy3742 7864c97
Correct the Pango negative size warning.
freakboy3742 2ffd585
Correct probe/API handling of ZWS.
freakboy3742 879f63e
Remove a redundant documentation note.
freakboy3742 15c3515
Relax width and height constraint during iOS rehinting to avoid word …
freakboy3742 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the previous code, I wasn't sure whether setting a label to centered and then to justified would give you a result with short lines still centered. Turns out it doesn't, because the native widget's horizontal gravity defaults to LEFT if unspecified, but this isn't clearly documented, so it's better to be explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I follow what you're saying here. Isn't this setting horizontal gravity every time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is now, but previously it was leaving the horizontal gravity unspecified when
value == JUSTIFY
.