some more structural changes

This commit is contained in:
2024-11-08 13:43:34 +01:00
parent da2b04c87e
commit 01448d955e
6 changed files with 180 additions and 258 deletions
+1 -4
View File
@@ -27,10 +27,7 @@ pub fn text<'a>() -> Box<Text<'a>> {
///
/// A `Box<Button>` containing a new `Button` element instance.
pub fn button<'a>() -> Box<Button<'a>> {
let mut btn = Button::new();
btn.style.clicked_bg = styles::Color::White;
btn.style.clicked_fg = styles::Color::Black;
Box::new(btn)
Box::new(Button::new())
}
/// Creates a new `Div` container element.