summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 03:22:55 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 03:23:36 +0100
commit708be32e3da9700afb61ab2f8a6da45b0e2df8ef (patch)
treee50f0bc1c1849fb8a8ba38f50f4e0fa1cb285d26 /style
parent9966c6f8834220e62fd66766d2e11d8a36e334e2 (diff)
downloadiced-708be32e3da9700afb61ab2f8a6da45b0e2df8ef.tar.gz
iced-708be32e3da9700afb61ab2f8a6da45b0e2df8ef.tar.bz2
iced-708be32e3da9700afb61ab2f8a6da45b0e2df8ef.zip
Derive `Copy` for `Theme`
Diffstat (limited to 'style')
-rw-r--r--style/src/theme.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs
index 35945aca..723c60d6 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -21,7 +21,7 @@ use crate::toggler;
use iced_core::{Background, Color};
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Theme {
Light,
Dark,
@@ -56,7 +56,7 @@ impl Default for Theme {
}
}
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Custom {
palette: Palette,
extended: Extended,