Repository navigation
feat(reveal): show hidden icons by scroll, empty click or shake - #493
Merged
Merged
Conversation
Three opt-in triggers (off by default), each its own pref, grouped with the hover row on Settings General. Global mouse and scroll monitors only, no new permission. Pure gesture logic in RevealGestures, monitors in RevealController, Accessibility hit test in RevealHitTester; reveal-sim debug hook.
tieubao
force-pushed
the
feat/reveal-without-aiming
branch
from
November 15, 2026 19:06
a3c4fd0 to
6291550
Compare
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.
What
Reveal without aiming (F3): three opt-in ways to show the hidden icons without hitting the 16-point arrow.
Settings, General: the hover row moves into a group "Also show hidden icons when you" with the three new switches, captions and the footnote from the Reveal-Settings board.
Why
The arrow is hard to hit, and hover only helps when the pointer already rests on the bar. All three gestures work where the pointer already is, with global mouse and scroll monitors only (the kind hover installs): no key monitor, no new permission or entitlement.
Decisions
revealOnScrollEnabled,revealOnEmptyClickEnabled,revealOnShakeEnabled. All three are inAppStoreSettingsImport.importableKeysand the whitelist test.AXUIElementCopyElementAtPositionread at the pointer, off the main thread, only once a gesture is recognised.HitClassifiermaps it: the menu bar role means empty; a menu bar item owned by the front app is a menu title; any other owner is an icon. Anything else is unknown and never counts as empty. I could not run this against a live menu bar (workers do not launch the app), so the role mapping is the one place a live pass may need tuning.test_selectingATab_titlesTheWindowis raised to 780: the fullest window (direct, macOS 27) now measures 772. F1 and F4 also add General rows, so General will outgrow any fixed cap; the lead may want a scrolling pane.reveal-sim scroll|scroll-up|click|shakeruns the same ingest calls a real event does, with the Accessibility read replaced by "empty space"; prefs still gate it.dump-stategainsrevealTriggerCountsandrevealedByGesture.Tests
bash scripts/test.sh --dd ~/.cache/hidden-bar/dd-reveal: exit 0.New:
RevealGesturesTestsandRevealControllerTests(HiddenBarTests, 44 cases, both schemes),RevealSettingsTests(HiddenTests, direct). Updated:SettingsWindowTests(legacy keys, App Store hidden row),AppStoreMigrationTests(whitelist).Negative control
Committed first. Then:
hidden/Features/Reveal/moved aside:bash scripts/test.sh --scheme direct --dd ~/.cache/hidden-bar/dd-revealexit 1, BUILD FAILED (the new test files cannot compile without the production code). Restored.bash scripts/test.sh --scheme appstore --dd ...exit 1, 9 failed. Failing:test_fullScreen_hasNoBand,test_momentumEvents_areIgnored,test_policy_showRules,test_shake_cooldownThenAgain,test_shake_firesOnThirdReversal,test_slowShake_doesNotFire,test_clickOnItemOrTitleOrUnknown_isIgnored,test_clickWithoutAccessibility_doesNothing,test_scrollOverIcon_isLeftToTheIcon. Restored withgit checkout; the full suite is green again.Snapshots (offscreen,
-settingsSnapshotDir)Read
direct-general-light.png,direct-general-dark.png,appstore-general-light.png,appstore-general-dark.pngagainstReveal-Settings: group title, row order, captions and footnote match. The direct tab shows the click row; the App Store tab does not. The other panes and status states were rendered too and are unchanged.Boards matched: Reveal-Settings (copy and layout), Reveal-Edge (edge states), Reveal-Entry (the three triggers).