💄 Define context styles for base components

This commit is contained in:
Manuel Cillero 2024-03-03 20:23:58 +01:00
parent e2090b2c81
commit c54390d3d9
5 changed files with 303 additions and 289 deletions

View file

@ -89,7 +89,7 @@ fn hello_world() -> Wrapper {
)
.add_component(
Button::anchor("#welcome-page", L10n::l("welcome"))
.with_style(ButtonStyle::Link)
.with_style(StyleBase::Link)
.with_left_icon(Some(Icon::with("arrow-down-circle-fill")))
.with_classes(ClassesOp::Add, "welcome-link")
.with_font_size(FontSize::Medium),