From 4923a43dacbc55c20030447d3e98a14389a45507 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Thu, 25 May 2023 12:43:36 -0400 Subject: [PATCH] feat (cosmic-theme): add id and name methods --- cosmic-theme/src/model/theme.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cosmic-theme/src/model/theme.rs b/cosmic-theme/src/model/theme.rs index a9e0b13e..f31b0cdd 100644 --- a/cosmic-theme/src/model/theme.rs +++ b/cosmic-theme/src/model/theme.rs @@ -164,6 +164,18 @@ impl Eq for Theme where { } +impl Theme { + /// version of the theme + pub fn version() -> u32 { + 1 + } + + /// id of the theme + pub fn id() -> &'static str { + NAME + } +} + impl Theme where C: Clone + fmt::Debug + Default + Into + From + Serialize + DeserializeOwned,