mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 19:22:44 +08:00
fix(theme/windows): switch to dark-light based theme detection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user