Repository navigation
Add display-aware corner size cycling - #1962
Open
joseph-zhong wants to merge 2 commits into
Open
joseph-zhong wants to merge 2 commits into
joseph-zhong wants to merge 2 commits into
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a display-orientation mode that cycles corner widths on landscape displays and corner heights on portrait displays.
Before
Corner shortcuts used one global horizontal or vertical expansion axis on every display.
After
Corner shortcuts can select a third mode that expands horizontally on landscape displays and vertically on portrait displays; the two existing fixed-axis modes behave as before.
Highlights
cornerCycleExpansionAxispreference key and its horizontal/vertical raw values for backwards compatibility.Learnings
CGRect.isLandscape; this change reuses that convention.Follow-ups
None.
Test Plan
From the repository root:
Captured output: no output; exit 0.
Captured output: no output; exit 0.
Captured output: no output; exit 0.
GitHub Actions run 42659621500 ran the repository build command:
Captured output:
GitHub Actions run 42660531150 ran the focused tests:
Captured output:
MANUAL (not run; requires one landscape and one portrait display):
com.knollsoft.Rectangle.debug.cycle sizes on side actions.based on display orientation.horizontally, thenvertically, and verify each fixed mode still uses the selected axis on both displays.