💥 Replace Basic theme by DefaultTheme

This commit is contained in:
Manuel Cillero 2023-07-23 07:51:12 +02:00
parent 84bd5f631a
commit 9eec6f88e2
4 changed files with 9 additions and 4 deletions

View file

@ -1,4 +1,5 @@
[app]
#theme = "Default"
#theme = "Aliner"
theme = "Bootsier"
#theme = "Bulmix"

View file

@ -2,7 +2,7 @@
name = "PageTop Application"
description = "Developed with the amazing PageTop framework."
# Tema predeterminado.
theme = "Basic"
theme = "Default"
# Idioma (localización) predeterminado.
language = "en-US"
# Dirección predeterminada para el texto: "ltr", "rtl" o "auto".

View file

@ -182,7 +182,7 @@ pub struct App {
/// Por defecto: *"Modular web solutions made simple with PageTop."*.
pub description: String,
/// Tema predeterminado.
/// Por defecto: *"Basic"*.
/// Por defecto: *"Default"*.
pub theme: String,
/// Idioma (localización) predeterminado.
/// Por defecto: *"en-US"*.
@ -284,7 +284,7 @@ default_settings!(
// [app]
"app.name" => "PageTop App",
"app.description" => "Modular web solutions made simple with PageTop.",
"app.theme" => "Basic",
"app.theme" => "Default",
"app.language" => "en-US",
"app.direction" => "ltr",
"app.startup_banner" => "Slant",

View file

@ -1,4 +1,4 @@
use crate::core::component::ContextOp;
use crate::core::component::{l10n::L10n, ContextOp};
use crate::core::module::ModuleTrait;
use crate::core::theme::{ThemeRef, ThemeTrait};
use crate::html::{Favicon, StyleSheet};
@ -17,6 +17,10 @@ impl ModuleTrait for DefaultTheme {
THEME_DEFAULT
}
fn name(&self) -> L10n {
L10n::n("Default")
}
fn theme(&self) -> Option<ThemeRef> {
Some(&DefaultTheme)
}