Repository navigation
Show window after first paint; remember window geometry across launches - #51
Merged
Merged
Conversation
- tauri.conf.json: visible:false + backgroundColor fallback (#f6f1e7, Kraft paper) so the window never paints white before the theme applies; main.ts reveals + focuses the window after boot and one animation frame (#29). - Register tauri-plugin-window-state so size/position/maximized state persist across launches; add core:window:allow-show capability (#30). Co-authored-by: setzor <setzor@users.noreply.github.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
visible: falseand abackgroundColorfallback matching the Kraft paper color (#f6f1e7), so nothing paints before the WebView applies the theme.main.tsreveals and focuses the window afterboot()completes plus onerequestAnimationFrame, ensuring the initial UI is themed and laid out before the window appears. TherevealWindow()call is failure-tolerant (dev/browser fallback) and addedcore:window:allow-showto capabilities.tauri-plugin-window-state(Builder::default().build()), which persists and restores window size, position, and maximized state across launches. Because the window now shows only after boot, restored geometry applies before reveal — no flicker from resize-after-show.minWidth/minHeight(640x420) still apply; the plugin clamps restores to visible monitors.Verification
pnpm test(20 files / 93 tests),pnpm typecheck,pnpm build— all pass.cargo metadataresolves;tauri-plugin-window-state 2.5.0added toCargo.lock. Fullcargo checkcannot run in this sandbox (missing system GTK/webkit dev libraries, no root), so the Rust build should be confirmed in CI.Closes #29
Closes #30