Skip to content

fix(windows): replace native title bar with custom controls#37

Merged
vanloctech merged 1 commit intovanloctech:mainfrom
TTAWDTT:fix/windows-custom-titlebar
Mar 4, 2026
Merged

fix(windows): replace native title bar with custom controls#37
vanloctech merged 1 commit intovanloctech:mainfrom
TTAWDTT:fix/windows-custom-titlebar

Conversation

@TTAWDTT
Copy link
Contributor

@TTAWDTT TTAWDTT commented Mar 3, 2026

Summary

  • Removes native Windows title bar decorations (set_decorations(false)) so the app theme fully controls the header area
  • Adds custom minimize/maximize-restore/close buttons rendered in the frontend, matching the macOS overlay title bar approach
  • Adds required Tauri v2 window permissions (allow-minimize, allow-toggle-maximize, allow-close, allow-is-maximized) to capabilities/default.json
  • Adjusts top padding for Windows to accommodate the custom title bar height

Problem

On Windows, the native title bar color followed the system theme (e.g. dark blue, light gray) and clashed with the app's own dark/light theme, creating a visual disconnect that didn't exist on macOS.

Test plan

  • Verify minimize, maximize/restore, and close buttons work on Windows
  • Verify window dragging works by clicking and dragging the title bar area
  • Verify double-clicking the title bar toggles maximize/restore
  • Verify macOS overlay title bar behavior is unchanged
  • Verify theme switching animation covers the entire window seamlessly

…ess theme integration

On Windows, the native title bar color followed the system theme and clashed
with the app's own theme. This removes native decorations and renders custom
minimize/maximize/close buttons in the frontend, matching the approach used
by macOS overlay title bar. Adds required Tauri v2 window permissions.
@TTAWDTT TTAWDTT force-pushed the fix/windows-custom-titlebar branch from ae67254 to f330454 Compare March 3, 2026 02:20
@vanloctech vanloctech merged commit 20c0bb1 into vanloctech:main Mar 4, 2026
3 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.

2 participants