From 84dfbba4f0f3465eea58e97156f67732b0f70966 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 28 Jun 2025 20:17:53 +0800 Subject: feat: support autodetecting dark/light theme (#1335) --- Cargo.lock | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 9c2300f..c1df608 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -92,6 +92,7 @@ dependencies = [ "simplelog", "syntect", "sys-locale", + "terminal-colorsaurus", "textwrap", "time", "tokio", @@ -3313,6 +3314,32 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "terminal-colorsaurus" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7afe4c174a3cbfb52ebcb11b28965daf74fe9111d4e07e40689d05af06e26e8" +dependencies = [ + "cfg-if", + "libc", + "memchr", + "mio 1.0.3", + "terminal-trx", + "windows-sys 0.59.0", + "xterm-color", +] + +[[package]] +name = "terminal-trx" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "975b4233aefa1b02456d5e53b22c61653c743e308c51cf4181191d8ce41753ab" +dependencies = [ + "cfg-if", + "libc", + "windows-sys 0.59.0", +] + [[package]] name = "textwrap" version = "0.16.2" @@ -4428,6 +4455,12 @@ dependencies = [ "markup5ever 0.12.1", ] +[[package]] +name = "xterm-color" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4de5f056fb9dc8b7908754867544e26145767187aaac5a98495e88ad7cb8a80f" + [[package]] name = "yansi" version = "1.0.1" -- cgit v1.2.3