From f4a61c136a5f18ad1be7e8e32001cfa7e8b40ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Thebault?= Date: Fri, 31 Jul 2026 12:14:31 +0200 Subject: [PATCH] remove unreleased dependency from plotive-iced --- Cargo.lock | 23 ----------------------- iced/Cargo.toml | 1 - iced/src/show.rs | 12 +----------- 3 files changed, 1 insertion(+), 35 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 35fe2f26..73798186 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -907,18 +907,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" -[[package]] -name = "dark-light" -version = "2.0.0" -source = "git+https://github.com/rust-dark-light/dark-light?rev=0f18d2fbcaa5d1c175db8aae7d53428988d7e961#0f18d2fbcaa5d1c175db8aae7d53428988d7e961" -dependencies = [ - "objc2 0.6.3", - "objc2-foundation 0.3.2", - "web-sys", - "winreg", - "zbus", -] - [[package]] name = "dasp_sample" version = "0.11.0" @@ -3024,7 +3012,6 @@ dependencies = [ "arboard", "bytes", "cpal", - "dark-light", "iced", "iced_font_awesome", "plotive", @@ -5238,16 +5225,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "winreg" -version = "0.55.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" -dependencies = [ - "cfg-if", - "windows-sys 0.59.0", -] - [[package]] name = "wit-bindgen" version = "0.46.0" diff --git a/iced/Cargo.toml b/iced/Cargo.toml index 4d2d8e18..ddc49471 100644 --- a/iced/Cargo.toml +++ b/iced/Cargo.toml @@ -19,7 +19,6 @@ iced_font_awesome.workspace = true rfd.workspace = true arboard = { workspace = true, optional = true } tokio = { workspace = true, optional = true } -dark-light = { git = "https://github.com/rust-dark-light/dark-light", rev = "0f18d2fbcaa5d1c175db8aae7d53428988d7e961" } [[example]] name = "scope" diff --git a/iced/src/show.rs b/iced/src/show.rs index 810cebd5..b150486d 100644 --- a/iced/src/show.rs +++ b/iced/src/show.rs @@ -222,14 +222,6 @@ fn theme_plotive_to_iced(pv_style: &plotive::Style) -> iced::Theme { } } -fn system_theme() -> Option { - match dark_light::detect() { - Ok(dark_light::Mode::Light) => Some(plotive::Style::light()), - Ok(dark_light::Mode::Dark) => Some(plotive::Style::dark()), - _ => None, - } -} - fn theme_from_show(show: &FigureShow) -> Option where D: data::Source + ?Sized + 'static, @@ -237,9 +229,7 @@ where if let Some(style) = &show.style { return Some(theme_plotive_to_iced(style)); } - if let Some(style) = system_theme() { - return Some(theme_plotive_to_iced(&style)); - } + None }