💥 Replace Basic theme by DefaultTheme
This commit is contained in:
parent
84bd5f631a
commit
9eec6f88e2
4 changed files with 9 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
[app]
|
[app]
|
||||||
|
#theme = "Default"
|
||||||
#theme = "Aliner"
|
#theme = "Aliner"
|
||||||
theme = "Bootsier"
|
theme = "Bootsier"
|
||||||
#theme = "Bulmix"
|
#theme = "Bulmix"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
name = "PageTop Application"
|
name = "PageTop Application"
|
||||||
description = "Developed with the amazing PageTop framework."
|
description = "Developed with the amazing PageTop framework."
|
||||||
# Tema predeterminado.
|
# Tema predeterminado.
|
||||||
theme = "Basic"
|
theme = "Default"
|
||||||
# Idioma (localización) predeterminado.
|
# Idioma (localización) predeterminado.
|
||||||
language = "en-US"
|
language = "en-US"
|
||||||
# Dirección predeterminada para el texto: "ltr", "rtl" o "auto".
|
# Dirección predeterminada para el texto: "ltr", "rtl" o "auto".
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,7 @@ pub struct App {
|
||||||
/// Por defecto: *"Modular web solutions made simple with PageTop."*.
|
/// Por defecto: *"Modular web solutions made simple with PageTop."*.
|
||||||
pub description: String,
|
pub description: String,
|
||||||
/// Tema predeterminado.
|
/// Tema predeterminado.
|
||||||
/// Por defecto: *"Basic"*.
|
/// Por defecto: *"Default"*.
|
||||||
pub theme: String,
|
pub theme: String,
|
||||||
/// Idioma (localización) predeterminado.
|
/// Idioma (localización) predeterminado.
|
||||||
/// Por defecto: *"en-US"*.
|
/// Por defecto: *"en-US"*.
|
||||||
|
|
@ -284,7 +284,7 @@ default_settings!(
|
||||||
// [app]
|
// [app]
|
||||||
"app.name" => "PageTop App",
|
"app.name" => "PageTop App",
|
||||||
"app.description" => "Modular web solutions made simple with PageTop.",
|
"app.description" => "Modular web solutions made simple with PageTop.",
|
||||||
"app.theme" => "Basic",
|
"app.theme" => "Default",
|
||||||
"app.language" => "en-US",
|
"app.language" => "en-US",
|
||||||
"app.direction" => "ltr",
|
"app.direction" => "ltr",
|
||||||
"app.startup_banner" => "Slant",
|
"app.startup_banner" => "Slant",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::core::component::ContextOp;
|
use crate::core::component::{l10n::L10n, ContextOp};
|
||||||
use crate::core::module::ModuleTrait;
|
use crate::core::module::ModuleTrait;
|
||||||
use crate::core::theme::{ThemeRef, ThemeTrait};
|
use crate::core::theme::{ThemeRef, ThemeTrait};
|
||||||
use crate::html::{Favicon, StyleSheet};
|
use crate::html::{Favicon, StyleSheet};
|
||||||
|
|
@ -17,6 +17,10 @@ impl ModuleTrait for DefaultTheme {
|
||||||
THEME_DEFAULT
|
THEME_DEFAULT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn name(&self) -> L10n {
|
||||||
|
L10n::n("Default")
|
||||||
|
}
|
||||||
|
|
||||||
fn theme(&self) -> Option<ThemeRef> {
|
fn theme(&self) -> Option<ThemeRef> {
|
||||||
Some(&DefaultTheme)
|
Some(&DefaultTheme)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue