Repository navigation
Conversation
Open the hover panel as a single shape that expands from the notch and contracts back into it on exit, with a spring animation that respects Reduce Motion. Wide camera cutouts keep the panel flush with the display top, and a Classic style keeps the original popover below the notch. The system-default panel surface now uses the component theme, so dark mode reads as near-black next to the notch. Explicit dismissals stay closed when the pointer returns during the close animation, so Escape cannot be reversed by hovering.
Contributor
Author
|
@xcv58 PTAL |
Scale the Dynamic Island morph between 0.5x and 2x from the plugin settings. The host reads the stored preference when it creates the notch panel and scales the spring timing, while the Classic popover stays unchanged. Older hosts hide the control through a new host capability flag.
This branch has not been deployed
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.
Problem and result
The Dynamic Island hover panel currently opens a separate popover below the notch. This change expands the panel from the notch as a single shape, like Spotlight, and folds it back when the pointer leaves. Returning during a pointer-driven close reverses the animation, while an explicit dismissal (Escape, another claim) stays closed. A Classic style keeps the previous below-the-notch popover, and the animation speed is adjustable for the Dynamic Island style.
Closes #541.
This is an alternative implementation of the same behavior as #542. It follows that approach and adds a near-black system-default panel surface in dark mode, a configurable animation speed, and a fix for the explicit-dismissal edge case raised in the #542 review.
Changes
0.5×to2×that scales the morph timing without changing its final shape. It is disabled for the Classic style.Compatibility: the morph requires a Mac display with a Dynamic Island; Classic stays available on other notched displays. No new permissions or network access. Existing
notch-hover.*preferences are preserved. The plugin advertises the panel-style and animation-speed capabilities, so older hosts keep the previous behavior and hide controls they cannot honor.Verification
make build-apppasses (0 errors).NotchHoverPanelControllerTests,NotchHoverPanelGeometryTests, andNotchMenuBarPanelTests— 32 tests pass, including the explicit-dismissal regression test, the animation-speed persistence and clamping checks, and a model test that faster speeds settle sooner without changing the final shape. The dismissal test was also run against the pre-fix code and failed as expected.make validate-changelogpasses andgit diff --checkis clean.make script-testsreports 8 failures confined totest_plugin_build_cache, caused by the localxcrunfixture (missing DEVELOPER_DIR path). Noscripts/files are changed in this PR, and the failures reproduce independently of it.UI evidence
Not attached yet. The morph needs a display with a Dynamic Island for a meaningful capture, so I verified behavior from the code paths and focused tests only. I can add light/dark before-and-after captures and a short recording once reviewed.
Checklist