💡 Mejora legibilidad de comentarios
This commit is contained in:
parent
2ac3c2a9c4
commit
31435f30d3
21 changed files with 74 additions and 68 deletions
|
|
@ -5,11 +5,11 @@ use parking_lot::RwLock;
|
|||
|
||||
use std::sync::LazyLock;
|
||||
|
||||
// TEMAS *******************************************************************************************
|
||||
// **< TEMAS >**************************************************************************************
|
||||
|
||||
pub static THEMES: LazyLock<RwLock<Vec<ThemeRef>>> = LazyLock::new(|| RwLock::new(Vec::new()));
|
||||
|
||||
// TEMA PREDETERMINADO *****************************************************************************
|
||||
// **< TEMA PREDETERMINADO >************************************************************************
|
||||
|
||||
pub static DEFAULT_THEME: LazyLock<ThemeRef> =
|
||||
LazyLock::new(|| match theme_by_short_name(&global::SETTINGS.app.theme) {
|
||||
|
|
@ -17,7 +17,7 @@ pub static DEFAULT_THEME: LazyLock<ThemeRef> =
|
|||
None => &crate::base::theme::Basic,
|
||||
});
|
||||
|
||||
// TEMA POR NOMBRE *********************************************************************************
|
||||
// **< TEMA POR NOMBRE >****************************************************************************
|
||||
|
||||
// Devuelve el tema identificado por su [`short_name()`](AnyInfo::short_name).
|
||||
pub fn theme_by_short_name(short_name: &'static str) -> Option<ThemeRef> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue