From e703a81b042fd79dcc262472eb075cc5ded0aebb Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Mon, 29 Sep 2025 12:56:17 +0200 Subject: feat!: use iced's built-in theme preference detection --- Cargo.toml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 19bec1d..1f98a77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,9 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] rust-version = "1.88" [features] -default = ["system-theme"] -# Adds a `System` theme variant that follows the system theme mode. -system-theme = ["dep:mundy", "dep:arc-swap"] +default = ["linux-theme-detection"] +# Enables Linux system theme detection +linux-theme-detection = ["iced_winit/linux-theme-detection"] # Provides `serde` support. serde = ["dep:serde"] # Provides support for animating with `iced_anim`. @@ -31,7 +31,7 @@ qr_code = ["iced_widget/qr_code"] [dependencies] iced_widget = "0.14.0-dev" -arc-swap = { version = "1.7.1", optional = true } +iced_winit = "0.14.0-dev" serde = { version = "1.0", optional = true } [dependencies.iced_dialog] @@ -45,12 +45,6 @@ branch = "iced/master" features = ["derive"] optional = true -[dependencies.mundy] -version = "0.2.0" -default-features = false -features = ["async-io", "color-scheme"] -optional = true - [dev-dependencies] iced = "0.14.0-dev" @@ -79,5 +73,6 @@ broken_intra_doc_links = "forbid" [patch.crates-io] iced_widget = { git = "https://github.com/iced-rs/iced", branch = "master" } +iced_winit = { git = "https://github.com/iced-rs/iced", branch = "master" } iced_core = { git = "https://github.com/iced-rs/iced", branch = "master" } iced = { git = "https://github.com/iced-rs/iced", branch = "master" } -- cgit v1.2.3