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,8 @@ use crate::base::component::Chunck;
|
|||
|
||||
/// Los temas deben implementar este "trait".
|
||||
pub trait Theme: Send + Sync {
|
||||
fn id(&self) -> &'static str;
|
||||
|
||||
fn name(&self) -> String;
|
||||
|
||||
fn description(&self) -> String {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue