mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-03 05:22:09 +08:00
fix(ui): prevent light flash on dark startup (#5637)
* fix(ui): prevent light flash on dark startup * fix(window): apply initial dark/light theme to prevent white flash * refactor(boot): optimize config fetch and theme fallback * fix: system theme detection * fix(window): remove black flash before loader by aligning initial paint with theme
This commit is contained in:
@@ -4,7 +4,7 @@ import { LogLevel } from "tauri-plugin-mihomo-api";
|
||||
|
||||
const [ThemeModeProvider, useThemeMode, useSetThemeMode] = createContextState<
|
||||
"light" | "dark"
|
||||
>("light");
|
||||
>();
|
||||
|
||||
export type LogFilter = "all" | "debug" | "info" | "warn" | "err";
|
||||
export type LogOrder = "asc" | "desc";
|
||||
|
||||
Reference in New Issue
Block a user