aboutsummaryrefslogtreecommitdiff
path: root/common/src/user.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-10-27 22:39:17 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-27 22:39:17 +0200
commit019ece5db107f5e4f096fdd2b8b20d1bfd0847d2 (patch)
tree0344be8efe9c154ebe043a5efe3a5ff45db02c23 /common/src/user.rs
parent6b5fbb8c9864f370ef5daf870518f9d3c48f46c5 (diff)
downloadjellything-019ece5db107f5e4f096fdd2b8b20d1bfd0847d2.tar
jellything-019ece5db107f5e4f096fdd2b8b20d1bfd0847d2.tar.bz2
jellything-019ece5db107f5e4f096fdd2b8b20d1bfd0847d2.tar.zst
purple theme
Diffstat (limited to 'common/src/user.rs')
-rw-r--r--common/src/user.rs9
1 files changed, 9 insertions, 0 deletions
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)]