fix(theme/windows): switch to dark-light based theme detection

This commit is contained in:
Slinetrac
2025-12-25 14:43:27 +08:00
parent 712b8ff19b
commit 1c044f053f
4 changed files with 110 additions and 19 deletions
+4
View File
@@ -22,6 +22,8 @@ use clash_verge_signal;
pub mod dns;
pub mod scheme;
#[cfg(target_os = "windows")]
pub mod theme;
pub mod ui;
pub mod window;
pub mod window_script;
@@ -64,6 +66,8 @@ pub fn resolve_setup_async() {
init_verge_config().await;
Config::verify_config_initialization().await;
init_window().await;
#[cfg(target_os = "windows")]
theme::start_windows_app_theme_watcher();
let core_init = AsyncHandler::spawn(|| async {
init_service_manager().await;