Skip to content

Add side panel visibility toggles - #1478

Closed
dimafa wants to merge 1 commit into
CyberTimon:mainfrom
dimafa:agent/panel-toggles
Closed

Add side panel visibility toggles#1478
dimafa wants to merge 1 commit into
CyberTimon:mainfrom
dimafa:agent/panel-toggles

Conversation

@dimafa

@dimafa dimafa commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

Adds VS Code-style controls for completely hiding and restoring the left and right side panels. Panel visibility is now independent of panel width, so each panel returns to its exact previous size instead of reopening at a hard-coded width.

The default shortcuts are Cmd+B for the left panel and Cmd+Shift+B for the right panel on macOS (Ctrl+B and Ctrl+Shift+B elsewhere). Both remain configurable in Settings. These match VS Code shortcuts.

Type of Change

  • New feature
  • UI/UX improvement

Changes Made

  • Add left/right panel toggle buttons to the custom title bar.
  • Add configurable left/right panel keyboard actions and localized labels.
  • Store visibility separately from width so buttons, shortcuts, and drag-to-collapse restore the exact previous panel size.
  • Persist visibility in workspace settings and migrate legacy collapsed-width state.
  • Reveal a panel automatically when an action selects content assigned to that side.
  • Hide collapsed panel contents from pointer and accessibility interaction.

Screenshots/Videos

LeftPanelHidden BothPanelsHidden

Testing

  • These changes were tested locally by a human and confirmed to work.

Test Configuration:

  • OS: macOS 26.4
  • Hardware: Apple M5 Pro

Checklist

  • My code follows the project's code style
  • I haven't added unnecessary AI-generated code comments
  • My changes generate no new warnings or errors

Additional Notes

The previous implementation represented a collapsed panel by overwriting its width with 48 px. Because that discarded the prior width, it could not restore the user's chosen size. This change keeps width and visibility as separate state.

AI Disclaimer:

  • This PR is mostly AI-generated but edited/merged together by a human

@dimafa
dimafa marked this pull request as ready for review August 6, 2026 01:14
@dimafa
dimafa requested a review from CyberTimon as a code owner August 6, 2026 01:14
@CyberTimon

Copy link
Copy Markdown
Owner

Hi @dimafa,

While reworking the implementation and storage for the panel width and visibility, I decided to directly implement the side panel visibility toggles (along with keybinds) as part of these changes: 491e4cf & 8731af6

Additionally, I added the toggles to the bottom bar to avoid cluttering the title bar, as title bar behavior isn't consistent across all operating systems.

Thanks!

@CyberTimon CyberTimon closed this Aug 6, 2026
@dimafa

dimafa commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

@CyberTimon, the change looks great, thank you.
Couple of suggestions:

  1. If user uses key combos for Folder, Metadata or Export and left panel is Hidden, it should be displayed. Same for right panel.
  2. The default key combo is reversed compared to VS Code. (Ctrl-B is left and Ctrl-Shift-B is right) for coders, this behaviour is ingrained in muscle memory :-)

@CyberTimon

Copy link
Copy Markdown
Owner

If user uses key combos for Folder, Metadata or Export and left panel is Hidden, it should be displayed. Same for right panel.

Agreed. This can be tracked for the next release.

The default key combo is reversed compared to VS Code. (Ctrl-B is left and Ctrl-Shift-B is right) for coders, this behaviour is ingrained in muscle memory :-)

This is intended. Since most photographers aren't using VS Code shortcuts on a daily basis, they aren't aware of this convention. The right panel is arguably the most used, which is why we use Ctrl+B for the right panel instead of the left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants