summaryrefslogtreecommitdiffstats
path: root/style/src/theme
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-11-03 04:54:46 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-03 04:54:46 +0100
commita8f510c39917b2ac42fcc854f0a7eff13aee9838 (patch)
tree66773a33f34b2d31b10d3d1bee69e264760160a0 /style/src/theme
parent231d2fd8454eb9d24ba970131d4d7339cc0c8d51 (diff)
parentdf7877767567cc0c7f48d2d6da4680a55f0f7b6d (diff)
downloadiced-a8f510c39917b2ac42fcc854f0a7eff13aee9838.tar.gz
iced-a8f510c39917b2ac42fcc854f0a7eff13aee9838.tar.bz2
iced-a8f510c39917b2ac42fcc854f0a7eff13aee9838.zip
Merge pull request #1432 from wash2/custom-theme
Add custom palette to built in theme
Diffstat (limited to 'style/src/theme')
-rw-r--r--style/src/theme/palette.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/style/src/theme/palette.rs b/style/src/theme/palette.rs
index 4fb5e4c8..b3a10d28 100644
--- a/style/src/theme/palette.rs
+++ b/style/src/theme/palette.rs
@@ -58,6 +58,7 @@ impl Palette {
};
}
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Extended {
pub background: Background,
pub primary: Primary,
@@ -95,7 +96,7 @@ impl Extended {
}
}
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Pair {
pub color: Color,
pub text: Color,
@@ -110,6 +111,7 @@ impl Pair {
}
}
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Background {
pub base: Pair,
pub weak: Pair,
@@ -129,6 +131,7 @@ impl Background {
}
}
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Primary {
pub base: Pair,
pub weak: Pair,
@@ -148,6 +151,7 @@ impl Primary {
}
}
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Secondary {
pub base: Pair,
pub weak: Pair,
@@ -168,6 +172,7 @@ impl Secondary {
}
}
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Success {
pub base: Pair,
pub weak: Pair,
@@ -187,6 +192,7 @@ impl Success {
}
}
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Danger {
pub base: Pair,
pub weak: Pair,