Skip to content

feat(shell): implement auto-hide mechanism for top bar - #362

Open
AngeloLaMadrid wants to merge 1 commit into
wayle-rs:masterfrom
AngeloLaMadrid:feat/bar-autohide
Open

feat(shell): implement auto-hide mechanism for top bar#362
AngeloLaMadrid wants to merge 1 commit into
wayle-rs:masterfrom
AngeloLaMadrid:feat/bar-autohide

Conversation

@AngeloLaMadrid

Copy link
Copy Markdown

Adds configurable auto-hide functionality for the top bar surface:

  • Autohide State Machine: Pure state machine in crates/wayle-shell/src/shell/bar/autohide/state.rs managing reveal/hide transitions, timer scheduling, and grace period echo suppression.
  • Trigger Surface: Layer-shell HoverTrigger edge surface to detect pointer approach when the bar is unmapped.
  • Popover Awareness: Tracks open dropdowns and popover menus to avoid hiding while active.
  • Settings & Docs: Adds toggle, hide timeout, and trigger size settings in settings UI along with documentation in docs/config/bar.md.

Add configurable auto-hide functionality for the top bar surface:
- Implement pure AutohideState machine handling timer scheduling, popover awareness, and grace period echo suppression.
- Add layer-shell HoverTrigger edge surface to detect pointer approach when bar is hidden.
- Integrate autohide settings (toggle, hide timeout, trigger size) with i18n support and documentation.
- Add comprehensive unit tests for autohide state transitions and popover lifecycle handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant