Añade gestión de regiones en temas

This commit is contained in:
Manuel Cillero 2025-07-24 21:20:35 +02:00
parent 126fe3a8ea
commit 0748261692
5 changed files with 137 additions and 1 deletions

View file

@ -1,4 +1,5 @@
use crate::core::extension::ExtensionTrait;
use crate::locale::L10n;
/// Representa una referencia a un tema.
///
@ -27,4 +28,8 @@ pub type ThemeRef = &'static dyn ThemeTrait;
///
/// impl ThemeTrait for MyTheme {}
/// ```
pub trait ThemeTrait: ExtensionTrait + Send + Sync {}
pub trait ThemeTrait: ExtensionTrait + Send + Sync {
fn regions(&self) -> Vec<(&'static str, L10n)> {
vec![("content", L10n::l("content"))]
}
}