Commit Graph

4 Commits

  • fix(windows): correct window title and remove extra titlebar spacing
    - Add missing "title" field to tauri.windows.conf.json to display
      "CC Switch" instead of default "Tauri app"
    - Make DRAG_BAR_HEIGHT platform-aware: 0px on Windows/Linux (native
      titlebar), 28px on macOS (Overlay mode needs traffic light space)
    - Apply same fix to FullScreenPanel component for consistency
    
    Fixes the issue where Windows showed wrong title and had ~28px extra
    blank space below the native titlebar introduced in v3.9.0.
  • fix(window): add minWidth/minHeight to Windows platform config
    Tauri 2.0 platform config merging is shallow, not deep. The Windows
    config only specified titleBarStyle, causing minWidth/minHeight to
    be missing on Windows. This allowed users to resize the window below
    900px, causing header elements to misalign.
  • fix(windows): use system titlebar to prevent black screen on startup
    The `titleBarStyle: "Overlay"` setting in tauri.conf.json causes black
    screen and crash on Windows due to WebView2 compatibility issues.
    
    Add platform-specific config `tauri.windows.conf.json` to override
    titleBarStyle to "Visible" on Windows while keeping the overlay style
    on macOS for the immersive UI experience.
    
    Fixes black screen issue on Windows for v3.8.x releases.