Skip to content

Custom-rendered app bar#10

Merged
nedtwigg merged 7 commits intomainfrom
feat/app-bar
Apr 13, 2026
Merged

Custom-rendered app bar#10
nedtwigg merged 7 commits intomainfrom
feat/app-bar

Conversation

@nedtwigg
Copy link
Copy Markdown
Member

Take control over the app bar when used Standalone.

nedtwigg and others added 7 commits April 13, 2026 10:58
Custom title bar with project directory display, shell dropdown for
creating new terminal splits, and platform-adaptive window controls.
macOS uses native traffic lights via titleBarStyle overlay; Windows/Linux
gets custom minimize/maximize/close buttons.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Split shell dropdown into a primary "new terminal" button showing the
  shell name (e.g. "+ zsh") and a separate dropdown caret for choosing
  a different shell type
- Add tooltip component that appears on hover for all AppBar buttons
  (window controls, new terminal, choose shell)
- Add proper ARIA roles (role="menu", role="menuitem") to the dropdown

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Separate projectDir and homeDir props so the display adapts when a
  real project directory is set (shows project name prominently with
  full abbreviated path on wider windows)
- When projectDir is the home dir, display "~" with a tooltip showing
  the full path
- Add tooltip to the project directory area showing the full path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The native "MouseTerm" title text was rendering on top of our custom
AppBar content. Setting hiddenTitle: true hides the native text while
keeping the title visible in the dock and app switcher.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

# Conflicts:
#	standalone/src-tauri/Cargo.lock
Mocks @tauri-apps/api/window via a Vite alias in viteFinal so the
module-level getCurrentWindow() call doesn't crash Storybook. Stories
cover the main content variants: default, home dir, long path, single
shell, many shells, and path outside home.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 13, 2026

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: c3c2b57
Status: ✅  Deploy successful!
Preview URL: https://9ba525a2.mouseterm.pages.dev
Branch Preview URL: https://feat-app-bar.mouseterm.pages.dev

View logs

@nedtwigg nedtwigg merged commit db1dea7 into main Apr 13, 2026
6 checks passed
@nedtwigg nedtwigg deleted the feat/app-bar branch April 13, 2026 20:36
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