From 8e27834e35af2c1cf1ab6372fec965d434f6bb07 Mon Sep 17 00:00:00 2001 From: Slinetrac Date: Fri, 26 Dec 2025 12:01:44 +0800 Subject: [PATCH] fix(theme/windows): apply patch to tao to fix Windows theme sync --- Cargo.lock | 17 +++++++++++++---- Cargo.toml | 3 +++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d4f1ae04e..034158d9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7435,8 +7435,7 @@ checksum = "c0e973b34477b7823833469eb0f5a3a60370fef7a453e02d751b59180d0a5a05" [[package]] name = "tao" version = "0.34.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3a753bdc39c07b192151523a3f77cd0394aa75413802c883a0f6f6a0e5ee2e7" +source = "git+https://github.com/clash-verge-rev/tao?branch=fix%2Fwindows-dark-mode#2676a907a149b5e8962cc15382736a92d2337984" dependencies = [ "bitflags 2.10.0", "block2 0.6.2", @@ -7463,7 +7462,7 @@ dependencies = [ "parking_lot", "raw-window-handle", "scopeguard", - "tao-macros", + "tao-macros 0.1.3 (git+https://github.com/clash-verge-rev/tao?branch=fix%2Fwindows-dark-mode)", "unicode-segmentation", "url", "windows 0.61.3", @@ -7483,6 +7482,16 @@ dependencies = [ "syn 2.0.111", ] +[[package]] +name = "tao-macros" +version = "0.1.3" +source = "git+https://github.com/clash-verge-rev/tao?branch=fix%2Fwindows-dark-mode#2676a907a149b5e8962cc15382736a92d2337984" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.111", +] + [[package]] name = "tap" version = "1.0.1" @@ -10119,7 +10128,7 @@ dependencies = [ "raw-window-handle", "sha2 0.10.9", "soup3", - "tao-macros", + "tao-macros 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "thiserror 2.0.17", "tracing", "url", diff --git a/Cargo.toml b/Cargo.toml index 77c5657f1..812b14fa0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,6 +71,9 @@ serde_yaml_ng = { version = "0.10.0" } deelevate = "0.2.0" # ********************************* +[patch.crates-io] +tao = { git = "https://github.com/clash-verge-rev/tao", branch = "fix/windows-dark-mode" } + [workspace.lints.clippy] correctness = { level = "deny", priority = -1 } suspicious = { level = "deny", priority = -1 }