Skip to content

Make the Windows/Linux menu bar collapsible behind the brand#12

Merged
danipen merged 1 commit into
mainfrom
windows-improve-menu
Jun 3, 2026
Merged

Make the Windows/Linux menu bar collapsible behind the brand#12
danipen merged 1 commit into
mainfrom
windows-improve-menu

Conversation

@danipen

@danipen danipen commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Turn the always-visible Windows/Linux custom menu bar into a collapsible one, toggled by the brand button (with a folded-in chevron) instead of taking up title-bar space by default.
  • Persist the expanded/collapsed state in localStorage (gg.menuExpanded), mirroring how the theme preference is stored. Defaults to collapsed so the title bar stays tidy.
  • MenuBar now takes an expanded prop and renders null while collapsed, staying mounted so the labels fetched on mount survive toggles without a refetch flicker.
  • On macOS the brand still opens About (no chevron); on Windows/Linux About moves to the Help menu and the brand doubles as the menu toggle.

Details

  • Toolbar.tsx: owns menuExpanded state + toggleMenu, wires the brand button to toggle (or About on macOS), passes expanded down to MenuBar.
  • MenuBar.tsx: accepts expanded, stays mounted while collapsed.
  • global.css: styles for the chevron inside the brand (muted color, rotates between collapsed/expanded), tweaked brand padding.

Test plan

  • On Windows/Linux: brand starts collapsed; clicking it expands the menu bar and the chevron rotates; state persists across reloads.
  • On macOS: brand still opens About, no chevron shown, native menu unchanged.

🤖 Generated with Claude Code

@danipen danipen merged commit f6d5339 into main Jun 3, 2026
9 checks passed
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.

1 participant