Derive Copy for Theme

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 03:22:55 +01:00
parent 9966c6f883
commit 708be32e3d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 4 additions and 4 deletions

View file

@ -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,