feat(core): add no_redirection_bitmap API on Windows#15410
Conversation
There was a problem hiding this comment.
Pull request overview
Exposes Tao's existing Windows with_no_redirection_bitmap option through Tauri's window builders and window config. This allows transparent windows to avoid the initial white redirection bitmap flash before the webview content is rendered.
Changes:
- Add
no_redirection_bitmapbuilder method on the runtimeWindowBuildertrait and itswry/mock implementations, plus publicWindowBuilder/WebviewWindowBuilderwrappers. - Add
noRedirectionBitmapfield toWindowConfig(with kebab-case alias) and propagate it from config to the wry builder; update both JSON schemas. - Add
.changes/entries describing the new feature fortauri,tauri-runtime,tauri-runtime-wry, andtauri-utils.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crates/tauri-runtime/src/window.rs | Adds no_redirection_bitmap to the WindowBuilder trait. |
| crates/tauri-runtime-wry/src/lib.rs | Implements the new builder method (windows/non-windows) and applies the config value. |
| crates/tauri/src/window/mod.rs | Public WindowBuilder::no_redirection_bitmap wrapper. |
| crates/tauri/src/webview/webview_window.rs | Public WebviewWindowBuilder::no_redirection_bitmap wrapper. |
| crates/tauri/src/test/mock_runtime.rs | No-op implementation for the mock runtime. |
| crates/tauri-utils/src/config.rs | Adds no_redirection_bitmap field, default, and build-time codegen. |
| crates/tauri-schema-generator/schemas/config.schema.json | Schema entry for noRedirectionBitmap. |
| crates/tauri-cli/config.schema.json | Mirrored CLI schema entry. |
| .changes/no-redirection-bitmap.md | Changelog for builder API addition. |
| .changes/no-redirection-bitmap-config.md | Changelog for config option addition. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Package Changes Through e33a3caThere are 6 changes which include @tauri-apps/api with minor, tauri with minor, tauri-utils with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-bundler with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
cd43831 to
499df79
Compare
Legend-Master
left a comment
There was a problem hiding this comment.
We will also want this to be typed in the window.ts
6ea4de3 to
e33a3ca
Compare
e33a3ca to
cba65d6
Compare
|
Yes, I've added a note to |
Related to #6775 and #14515.
Exposes Tao's existing Windows
with_no_redirection_bitmapoption through Tauri window builders and window config.This allows transparent windows to avoid the initial white redirection bitmap frame before the webview content is rendered.
Repro: zetaloop/tauri-noredirectionbitmap-repro
Before fix:
After fix:
(Amended the commit to fix outdated schema)