Repository navigation
Make the window and UI feel native on each OS - #415
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
--radius6px, a 38px macOS title bar (traffic lights at 14, 21), 36px on Windows and Linux, and 1px hairlines between the bars.window_state.rssaves size, position (checked against the connected monitors) and maximized state towindow-state.json, instead of opening maximized every launch..shadow(true)on frameless windows), uses Mica for glass and Fluent caption glyphs.WEBKIT_DISABLE_DMABUF_RENDERER=1is now set only after a launch that failed to draw (display_backend::using_fallback()) or by hand.Testing
npm teston the combined tree (with Convex) passes: 2003 node tests and 20 DOM tests.svelte-checkshows 0 errors.cargo test --libpasses, 514 tests. This was the first compile ofwindow_state.rsand the newlib.rswiring.Effect::Mica,EffectState::FollowsWindowActiveState,EffectsBuilder,set_effects,set_theme. The nightly build is the first real compile on both.This PR bumps the version for the group. Its changelog carries this changeset and the Convex one (#414).