Modifica la forma de identificar temas y módulos
Cada módulo y cada tema requerirá a partir de ahora un identificador que debería ser único y con alguna sintaxis particular aún por definir (por ejemplo, admitiendo sólo minúsculas y sin espacios).
This commit is contained in:
parent
3764f707da
commit
83fd12b5cc
16 changed files with 65 additions and 30 deletions
|
|
@ -5,6 +5,10 @@ include!(concat!(env!("OUT_DIR"), "/aliner.rs"));
|
|||
pub struct AlinerTheme;
|
||||
|
||||
impl Theme for AlinerTheme {
|
||||
fn id(&self) -> &'static str {
|
||||
"aliner"
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
"Aliner".to_string()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ localize!("en-US", "src/base/theme/bootsier/locales");
|
|||
pub struct BootsierTheme;
|
||||
|
||||
impl Theme for BootsierTheme {
|
||||
fn id(&self) -> &'static str {
|
||||
"bootsier"
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
"Bootsier".to_string()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@ use crate::prelude::*;
|
|||
pub struct MinimalTheme;
|
||||
|
||||
impl Theme for MinimalTheme {
|
||||
fn id(&self) -> &'static str {
|
||||
"minimal"
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
"Minimal".to_string()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue