feat (cosmic-theme): add id and name methods

This commit is contained in:
Ashley Wulber 2023-05-25 12:43:36 -04:00
parent 03d4a71888
commit 4923a43dac
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -164,6 +164,18 @@ impl<C> Eq for Theme<C> where
{ {
} }
impl<C> Theme<C> {
/// version of the theme
pub fn version() -> u32 {
1
}
/// id of the theme
pub fn id() -> &'static str {
NAME
}
}
impl<C> Theme<C> impl<C> Theme<C>
where where
C: Clone + fmt::Debug + Default + Into<Srgba> + From<Srgba> + Serialize + DeserializeOwned, C: Clone + fmt::Debug + Default + Into<Srgba> + From<Srgba> + Serialize + DeserializeOwned,