mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #115] [MERGED] Prevent theme flashing on initial window load #51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/115
Author: @gschier
Created: 9/25/2024
Status: ✅ Merged
Merged: 9/25/2024
Merged by: @gschier
Base:
master← Head:fix-theme-flashing📝 Commits (1)
155ce62Fix theme flashing📊 Changes
4 files changed (+15 additions, -8 deletions)
View changed files
📝
src-tauri/capabilities/capabilities.json(+1 -0)📝
src-tauri/gen/schemas/capabilities.json(+1 -1)📝
src-tauri/src/lib.rs(+1 -0)📝
src-web/theme.ts(+12 -7)📄 Description
Since the current theme is not yet available when a new window is shown for the first time, there may be a flash of the background color going from light to dark. This is particularly the case on Windows, where the default background is white, even in dark mode).
This PR sets all new windows to hidden by default and leaves it up to the frontend code to show its window after the theme is initially loaded.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.