From 019ece5db107f5e4f096fdd2b8b20d1bfd0847d2 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 27 Oct 2023 22:39:17 +0200 Subject: purple theme --- common/src/user.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/src') diff --git a/common/src/user.rs b/common/src/user.rs index 17700a0..2b67de5 100644 --- a/common/src/user.rs +++ b/common/src/user.rs @@ -20,6 +20,15 @@ pub struct User { pub enum Theme { Dark, Light, + Purple, +} + +impl Theme { + pub const LIST: &'static [(Theme, &'static str)] = &[ + (Theme::Dark, "Dark"), + (Theme::Light, "Light"), + (Theme::Purple, "Purple"), + ]; } #[derive(Debug, Clone, Serialize, Deserialize, Default)] -- cgit v1.2.3-70-g09d2