Skip to content

Restore dockable navigation pane with adaptive/docked/overlay modes#5063

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/navigation-menu-dock-mode
Jul 8, 2026
Merged

Restore dockable navigation pane with adaptive/docked/overlay modes#5063
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/navigation-menu-dock-mode

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request introduces a new user-selectable navigation menu layout mode ("Navigation menu mode") to the application, allowing users to choose between Automatic, Docked open, or Sliding overlay navigation styles. The implementation updates the sidebar's responsive logic, adds the new setting to the interface and settings engine, and refactors the layout bindings and logic for greater clarity and flexibility.

Navigation menu mode feature:

  • Added a new "Navigation menu mode" setting (NavMenuMode) with options: Automatic, Docked open, and Sliding overlay, including UI text and settings key definitions.
  • Updated the settings page (Interface_P) to include a combobox for selecting the navigation menu mode, and made the change apply live without restart.

Sidebar and layout logic refactor:

  • Refactored SidebarViewModel to support the new navigation modes, including logic for docked, rail, and overlay layouts, and responsive behavior based on window width. Added new properties and methods to manage these states.
  • Updated MainWindow.axaml to bind the visibility of navigation elements (NavRail, NavDock, and overlay) to the new sidebar properties, ensuring correct layout for each mode and window size.

Code cleanup and minor improvements:

  • Removed obsolete badge visibility property change notifications in SidebarViewModel, as layout changes are now handled by the new logic.
  • Updated sidebar pane open/close logic to persist user preference only in docked mode, and ensured the overlay closes when a new page is selected unless docked.
  • Refactored window width observation and sidebar updates to drive layout changes responsively, and added a method to refresh navigation mode live from settings.

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 8c235b8 into main Jul 8, 2026
4 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the fix/navigation-menu-dock-mode branch July 8, 2026 20:01
@GabrielDuf Gabriel Dufresne (GabrielDuf) linked an issue Jul 8, 2026 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Unable to pin control panel in expanded view

2 participants