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

Make TwoPane layout adaptive to screen orientation #1182

Merged
merged 3 commits into from
May 7, 2022

Conversation

mwz
Copy link
Contributor

@mwz mwz commented Jan 13, 2022

I've been experimenting recently with a vertical monitor setup and I decided to follow up on #1124 and made the Two Pane layout to adapt to horizontal/vertical view depending on the screen orientation (i.e. it does vertical tiling on a vertical monitor).

I've used it a lot over the last couple of days on both a horizontal and a vertical monitor - I have a keyboard shortcut to trigger it and imho It seems to be way more convenient to reuse the existing layout rather than create a separate layout, but please let me know if you'd rather have it as a separate one.

Please see a short demo below:

CleanShot.2022-01-13.at.00.22.41-converted.2.mp4

@mwz mwz changed the title Make Two Pane view adaptive to screen orientation Make TwoPane layout adaptive to screen orientation Jan 13, 2022
@mwz
Copy link
Contributor Author

mwz commented Jan 25, 2022

Hi @ianyh, any chance you could take a look at this PR?
Those test failures don't seem to be related to my changes.

@ianyh
Copy link
Owner

ianyh commented Jan 27, 2022

Yeah, you need to pull in upstream. It has a fix for the tests compilation issue.

@mwz
Copy link
Contributor Author

mwz commented Jan 27, 2022

Yeah, you need to pull in upstream. It has a fix for the tests compilation issue.

ok - done 👍🏻

@mwz
Copy link
Contributor Author

mwz commented Apr 28, 2022

hey @ianyh, any chance this can be merged if you're happy with the changes?

@mwz mwz mentioned this pull request Apr 28, 2022
Copy link
Owner

@ianyh ianyh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@ianyh ianyh merged commit 45444d8 into ianyh:development May 7, 2022
ianyh added a commit to reyk/Amethyst that referenced this pull request May 7, 2022
* development:
  Throw window to any space across multiple screens. (ianyh#1209)
  Make TwoPane layout adaptive to screen orientation (ianyh#1182)
  Minor fix (line 69) (ianyh#1230)
  Bump cocoapods-downloader from 1.5.1 to 1.6.3 (ianyh#1226)
  Fix the layout HUD when multiple screen are arranged vertically (ianyh#1162) (ianyh#1163)
  Bump version to 0.15.6 (ianyh#1205)
  Remove errant link (ianyh#1207)
  Replace gitter with GitHub Discussions (ianyh#1206)
  Update Window.swift (ianyh#1203)
  Fix setup.sh so that it correctly checks for rbenv (ianyh#1198)
  add regex suuport to floating windows title matching (ianyh#1166)
  Get the build going (ianyh#1185)
  Fix for move to window to space - ianyh#1174 (ianyh#1184)
  Update cocoapods in Gemfile (ianyh#1159)
  Remove travis file (ianyh#1158)
  Create GitHub Action for running tests (ianyh#1157)
  Add some common macOS agents to ignored list (ianyh#1156)
  Bump addressable from 2.7.0 to 2.8.0 (ianyh#1136)
@mwz mwz deleted the adaptive-two-pane branch May 7, 2022 11:41
ianyh added a commit that referenced this pull request May 21, 2022
* development:
  Fix swapping with two windows visible for two-pane layout (#1241)
  Add 4Column layout for ultra-wide screens (#1154)
  Throw window to any space across multiple screens. (#1209)
  Make TwoPane layout adaptive to screen orientation (#1182)
  Minor fix (line 69) (#1230)
  Bump cocoapods-downloader from 1.5.1 to 1.6.3 (#1226)
  Fix the layout HUD when multiple screen are arranged vertically (#1162) (#1163)
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