feat: support for custom & system themes + move cosmic-theme to libcosmic
This commit is contained in:
parent
259bba4d19
commit
bf1c474d08
26 changed files with 2639 additions and 44 deletions
32
cosmic-theme/Cargo.toml
Normal file
32
cosmic-theme/Cargo.toml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[package]
|
||||
name = "cosmic-theme"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["test_all_features"]
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
no-default = []
|
||||
contrast-derivation = ["float-cmp"]
|
||||
theme-from-image = ["kmeans_colors", "contrast-derivation", "float-cmp", "image"]
|
||||
hex-color = ["hex"]
|
||||
|
||||
[dependencies]
|
||||
palette = {version = "0.6", features = ["serializing"] }
|
||||
anyhow = "1.0"
|
||||
hex = {version = "0.4.3", optional = true}
|
||||
kmeans_colors = { version = "0.5", features = ["palette_color"], default-features = false, optional = true }
|
||||
image = {version = "0.24.1", optional = true }
|
||||
float-cmp = { version = "0.9.0", optional = true }
|
||||
serde = { version = "1.0.129", features = ["derive"] }
|
||||
ron = "0.8"
|
||||
lazy_static = "1.4.0"
|
||||
csscolorparser = {version = "0.6.2", features = ["serde"]}
|
||||
directories = { git = "https://github.com/edfloreshz/directories-rs", version = "4.0.1" }
|
||||
cosmic-config = { path = "../cosmic-config/", default-features = false, features = ["subscription"] }
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue