Repository navigation
Windows: let the strip's host place the HW pill (strip v2) - #445
Merged
Merged
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.
Moves the HW pill onto the strip version 2 layout: the strip's host places every pill, the widget only draws.
windows/src/WidgetStrip.cs: the shared strip file, version 2, copied unchanged from the frozen copy shared by every widget.windows/src/App.cs: amanagedflag set when the strip's host is version 2. Then the pill joins ashw, draws whereStrip.Keepsays (its right edge where the host put it), reads its live window rect before hover, the card and each draw, tells the host when a drag starts, and on drop saves the new order throughStrip.Droppedinstead of an offset. It leaves the layout when it returns to the taskbar or closes. Under a version 1 host or on the taskbar the old placement runs unchanged; the pills on other taskbars are unchanged.windows/src/ZOrder.cs:PillSpot, the managed-or-own-slot choice, so the self-test can check it.windows/src/TestModes.cs: TC-314/TC-315, 10 checks: gap, pack, order parsing and rank, version 2, a fake strip window that is managed only withSolarityLayout2, and that the managed path usesKeepand never its own slot code (the unmanaged path the reverse).CHANGELOG.md,README.md: the change line and the self-test count (228).Checks:
sh tools/verify.sh windows-core228 passed, 0 failed;sh tools/verify.sh privacyclean.Fixes #444