🚧 Actualiza dependencias y revisa código
This commit is contained in:
parent
8856699c3b
commit
c046014d04
4 changed files with 678 additions and 547 deletions
|
|
@ -2,15 +2,15 @@ use crate::global;
|
|||
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use figlet_rs::FIGfont;
|
||||
use figlet_rs::FIGlet;
|
||||
|
||||
pub static FIGFONT: LazyLock<FIGfont> = LazyLock::new(|| {
|
||||
pub static FIGFONT: LazyLock<FIGlet> = LazyLock::new(|| {
|
||||
let slant = include_str!("slant.flf");
|
||||
let small = include_str!("small.flf");
|
||||
let speed = include_str!("speed.flf");
|
||||
let starwars = include_str!("starwars.flf");
|
||||
|
||||
FIGfont::from_content(match global::SETTINGS.app.startup_banner {
|
||||
FIGlet::from_content(match global::SETTINGS.app.startup_banner {
|
||||
global::StartupBanner::Off | global::StartupBanner::Slant => slant,
|
||||
global::StartupBanner::Small => small,
|
||||
global::StartupBanner::Speed => speed,
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ impl<C: Component> ComponentRender for C {
|
|||
action::component::BeforeRender::dispatch(self, cx);
|
||||
|
||||
// Prepara el renderizado: recorre la cadena de temas, luego el componente.
|
||||
let prepare = match 'resolve: {
|
||||
let result = 'resolve: {
|
||||
let mut t: Option<ThemeRef> = Some(cx.theme());
|
||||
while let Some(theme) = t {
|
||||
if let Some(r) = theme.handle_component(self, cx) {
|
||||
|
|
@ -167,7 +167,8 @@ impl<C: Component> ComponentRender for C {
|
|||
t = theme.parent();
|
||||
}
|
||||
self.prepare(cx)
|
||||
} {
|
||||
};
|
||||
let prepare = match result {
|
||||
Ok(markup) => markup,
|
||||
Err(error) => {
|
||||
crate::trace::error!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue