Skip to content

Make the window and UI feel native on each OS - #415

Merged
broisnees merged 1 commit into
nightlyfrom
feat/native-feel
Nov 24, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
feat/native-feel

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Stroke felt like a web page in a window next to native apps. This PR changes the defaults and the window chrome on each OS.

  • Density: 14px base text instead of 16px, icons at their real 12/14/16px sizes, --radius 6px, a 38px macOS title bar (traffic lights at 14, 21), 36px on Windows and Linux, and 1px hairlines between the bars.
  • Motion: no press squash, dialogs fade instead of zooming, plain tooltips, a spinner for the sidebar loader, flat chips and keycaps.
  • Window state: window_state.rs saves size, position (checked against the connected monitors) and maximized state to window-state.json, instead of opening maximized every launch.
  • Chrome per OS:
    • Windows 11 keeps its DWM shadow (.shadow(true) on frameless windows), uses Mica for glass and Fluent caption glyphs.
    • Linux gets round GTK-style controls and a 1px border when windowed.
    • macOS glass follows the window's active state.
    • Chrome dims when the window is unfocused.
    • Alt+F/E/V/T/H mnemonics open the menus.
  • Defaults: system UI font with OS smoothing, native scrolling on every OS, and trackpads always bypass eased wheel scrolling.
  • Linux rendering: Linux uses GPU compositing. WEBKIT_DISABLE_DMABUF_RENDERER=1 is now set only after a launch that failed to draw (display_backend::using_fallback()) or by hand.

Testing

  • JS: npm test on the combined tree (with Convex) passes: 2003 node tests and 20 DOM tests. svelte-check shows 0 errors.
  • Rust (Linux): cargo test --lib passes, 514 tests. This was the first compile of window_state.rs and the new lib.rs wiring.
  • Rust (macOS, Windows): not compiled locally. I checked the cfg-gated code against the tauri 2.12.5 source: Effect::Mica, EffectState::FollowsWindowActiveState, EffectsBuilder, set_effects, set_theme. The nightly build is the first real compile on both.
  • Not done: no hands-on pass of the new look on any OS yet.

This PR bumps the version for the group. Its changelog carries this changeset and the Convex one (#414).

Density: 14px base text instead of 16px, icons at their real sizes, a 6px
radius, a 38px macOS title bar (36px on Windows and Linux), and 1px hairlines
between the bars. Motion: no press squash, dialogs fade, plain tooltips, a
spinner for the sidebar loader.

Window: size, position and maximized state persist in window-state.json
(window_state.rs) instead of opening maximized every launch. Windows 11 keeps
its DWM shadow, uses Mica for glass and Fluent caption glyphs; Linux gets round
GTK-style controls and a 1px border when windowed; macOS glass follows the
window's active state. Chrome dims when the window loses focus. Alt mnemonics
open the menus on Windows and Linux.

Defaults: system UI font and OS smoothing, native scrolling everywhere, and
trackpads always bypass eased wheel scrolling. Linux uses GPU compositing and
falls back to software rendering only after a failed launch or with
WEBKIT_DISABLE_DMABUF_RENDERER=1.
@broisnees broisnees added the release:patch Default for PRs into nightly: next patch (.9 rolls to the next minor). On master: hotfix release label Nov 24, 2026
@broisnees
broisnees merged commit c0ad360 into nightly Nov 24, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release:patch Default for PRs into nightly: next patch (.9 rolls to the next minor). On master: hotfix release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant