Skip to content

fix: interim releif for dark theme white flash on startup #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

abose
Copy link
Member

@abose abose commented Feb 23, 2025

Address shell component of: phcode-dev/phoenix#2149

  1. We cannot use the visibility: false logic as suggested in the root Tauri issue: Allow changing the webview background color  tauri-apps/tauri#1564 as it lead to add load time delay perception of up to 200ms(Though the actual load time is not affected, just that we hide the main window until black paint is done.) . This will affect the light weight perception of the app and hence cannot be the default.

So as a middle ground, adding optional support so that users can selectively trade-off delayed startup till the dark theme is rendered or faster show of app window.

The impl reads an existing boot_config.json file in app config dir and also adds fault tolarance to determine if to hide all on start. Its set to false by default and can be set to true from phcode settings.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant