GitHub

/window-chrome

Window Chrome

Title bars, drag regions, traffic lights, Snap Layouts and native materials, decided per OS.

npx skills@latest add agmmnn/desktop-feel --skill window-chrome

Tauri, Electron · 15 rules · Updated November 28, 2026

What it does

  • Same frameless setup on every OS. Platform-specific config WC-01
  • Can't drag the window. Drag region + permission WC-02
  • Buttons in the title bar drag instead of click. Opt controls out of the drag region WC-03
  • Traffic lights don't line up with the toolbar. trafficLightPosition + matching padding WC-04
  • Empty gap where traffic lights were, in fullscreen. Remove the gutter in fullscreen WC-05
  • No Snap Layouts on the maximize button. Native decorations or a snap-layout plugin WC-06
  • Window won't drag until clicked once. Known Overlay limitation WC-07
  • Frosted sidebar is slow / looks flat. Window effects, not backdrop-filter WC-08
  • "Transparent" window is still opaque. Transparent html and body, macOS private API WC-09
  • Window shrinks until the layout breaks. Minimum size WC-10
  • Window opens at the same size every time. Remember size and position WC-11
  • Dark app with a light title bar. Set the native window theme WC-12
  • First click on an inactive palette is swallowed. Decide acceptFirstMouse WC-13
  • Double-clicking the custom title bar does nothing. Toggle maximize on double-click WC-14
  • Frameless Windows window is a flat rectangle, or has a stray white line. Keep the system shadow, design for its border WC-15

When to use it

When you remove or customize the title bar, add a frosted sidebar, or the window frame behaves differently from native apps.

Example prompts

You don’t need special wording. Describe the problem the way you’d describe it to a teammate.

  • /window-chrome I removed the title bar and now I can't drag the window
  • /window-chrome the traffic lights don't line up with my toolbar
  • /window-chrome Snap Layouts don't show on my maximize button

Rules

Each rule has a stable ID. Review and audit output link back here.

WC-01Title bar strategy per OS

Apply the decision table through per-platform config files so each OS gets its own frame. Never ship decorations: false to all three platforms by default. Code: TAURI.md.

Look for
decorations: false applied to every platform
Verify on
code
Severity
Low

WC-02A frameless window can be dragged

Without a native title bar, nothing moves the window until you mark a drag region. The region must cover the empty title-bar area, at the height the OS uses (about 28px on macOS with Overlay, more with a toolbar; 32px on Windows). The shell also needs permission to start a drag. Code: TAURI.md.

Look for
decorations: false / Overlay with no data-tauri-drag-region or startDragging; missing core:window:allow-start-dragging
Verify on
each OS
Severity
High

WC-03Controls inside a drag region still work

A button inside the drag region starts a window drag instead of a click, or works only sometimes. Interactive elements in the title bar (tabs, search, buttons) must not be part of the region. Mark only the background, or opt controls out. Code: TAURI.md.

Look for
buttons/inputs nested in a drag region element without opting out
Verify on
each OS
Severity
Low

WC-04Traffic lights align with the toolbar

With an overlay title bar, the traffic lights sit at the OS default position, which rarely matches a taller custom toolbar. Move them to the toolbar's vertical center and leave left padding so content doesn't run under them. The padding must match the buttons' actual width (about 70–80px including inset, verify on macOS).

Look for
Overlay with no trafficLightPosition and no left padding for the buttons
Verify on
macOS
Severity
Medium

WC-05No empty traffic-light gutter in fullscreen

In fullscreen the traffic lights hide, but the left padding stays and the toolbar looks broken. Track fullscreen and drop the padding.

Look for
fixed left padding regardless of fullscreen state
Verify on
macOS
Severity
Low

WC-06Windows caption buttons keep Snap Layouts — or the loss is deliberate

On Windows 11, hovering the maximize button shows Snap Layouts. That flyout appears only when the window answers the OS hit test with "this is the maximize button" (HTMAXBUTTON). HTML buttons can't answer it, so a custom caption bar drawn in HTML loses Snap Layouts, and no frontend code brings it back.

Look for
HTML min/max/close buttons on Windows, no snap-layout plugin
Verify on
Windows 11
Severity
High

WC-07Overlay windows can't be dragged while unfocused

A Tauri limitation: with titleBarStyle: "Overlay", dragging the title area of an inactive window does nothing until it is focused (tauri#4316). There is no CSS fix. Note it when choosing Overlay; don't try to fix it with click handlers.

Look for
titleBarStyle: "Overlay"
Verify on
macOS
Severity
Low

WC-08Materials come from the OS

A sidebar with backdrop-filter: blur(30px) over a solid window background blurs nothing useful, costs paint time (badly on Linux, WQ-02), and doesn't match the OS material. Use window effects: macOS vibrancy (sidebar, underWindowBackground, Liquid Glass on macOS 26+), Windows 11 Mica/Tabbed/Acrylic. Let the web view be transparent where the material should show.

Look for
large backdrop-filter: blur() on window background / sidebar
Verify on
each OS
Severity
Medium

WC-09Transparent windows are actually transparent

transparent: true on the window is not enough. Both html and body (and the framework root) must have a transparent background, and macOS needs the private API flag. Missing any of these gives an opaque window.

Look for
transparent: true with opaque html or body; macOS without macOSPrivateApi
Verify on
macOSWindows
Severity
Low

WC-10Minimum window size

Without a minimum, the window shrinks until the sidebar overlaps content and toolbars wrap. Set a minimum that fits the narrowest supported layout, and make the layout collapse (sidebar hidden, toolbar overflow) above that width, not break. Windows 11 Snap Layouts need windows that can shrink to a half or third of the screen; a huge minimum blocks snapping. Code: TAURI.md.

Look for
no minWidth / minHeight
Verify on
code
Severity
Medium

WC-11Remember size and position

Native apps reopen where you left them. Persist size, position, maximized and fullscreen state, and clamp to visible monitors (a monitor may have been unplugged). Code: TAURI.md.

Look for
no window-state plugin or equivalent
Verify on
each OS
Severity
Low

WC-12Native title bar follows the app theme

When the app has its own light/dark toggle, the native title bar and caption buttons keep following the OS. A dark app with a white title bar looks broken. Set the native window theme whenever the app theme changes; when the app follows the system, leave the native theme on system. Code: TAURI.md.

Look for
in-app theme toggle without setTheme on the window
Verify on
each OS
Severity
Medium

WC-13First click on an inactive window

On macOS, the first click on an inactive window normally only activates it. For main windows that's right. For tool palettes and floating panels, users expect the first click to act. Decide per window. Code: TAURI.md.

Look for
acceptFirstMouse unset on a tool-palette style window
Verify on
macOS
Severity
Low

WC-14Double-click on a custom title bar

Double-clicking a native title bar maximizes (Windows) or zooms/minimizes per the user's setting (macOS). A custom title bar that does nothing on double-click feels dead. With an Overlay title bar on macOS the OS still handles it; for fully custom bars, toggle maximize on double-click of the drag region. Code: TAURI.md.

Look for
custom title bar without double-click handling
Verify on
each OS
Severity
Low

WC-15Frameless windows on Windows keep their shadow and corners

A Windows window without decorations can lose the system shadow and Windows 11's rounded corners, leaving a flat rectangle that doesn't separate from what's behind it. With the system shadow on, Windows draws a 1px border around the window, and the border is light by default, which shows as a stray line in a dark theme. Keep the shadow and design for the border: check it in both themes, and make sure the app's background reaches every edge so the border sits against the app, not against a gap. Linux doesn't support the setting. Code: TAURI.md.

Look for
decorations: false with shadow: false
Verify on
Windows
Severity
Low

Read the full skill on GitHub