summaryrefslogtreecommitdiffstats
path: root/style/src/theme.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/theme.rs')
-rw-r--r--style/src/theme.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/style/src/theme.rs b/style/src/theme.rs
index 723c60d6..a253e990 100644
--- a/style/src/theme.rs
+++ b/style/src/theme.rs
@@ -21,19 +21,19 @@ use crate::toggler;
use iced_core::{Background, Color};
-#[derive(Debug, Clone, Copy, PartialEq)]
+#[derive(Debug, Clone, PartialEq)]
pub enum Theme {
Light,
Dark,
- Custom(Custom),
+ Custom(Box<Custom>),
}
impl Theme {
pub fn custom(palette: Palette) -> Self {
- Self::Custom(Custom::new(palette))
+ Self::Custom(Box::new(Custom::new(palette)))
}
- pub fn palette(self) -> Palette {
+ pub fn palette(&self) -> Palette {
match self {
Self::Light => Palette::LIGHT,
Self::Dark => Palette::DARK,