feat (cosmic-theme): add id and name methods
This commit is contained in:
parent
03d4a71888
commit
4923a43dac
1 changed files with 12 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue