added components

This commit is contained in:
2024-10-31 12:36:59 +01:00
parent 6bbc850a9c
commit 92ab35c4ef
3 changed files with 354 additions and 3 deletions
+12 -2
View File
@@ -6,8 +6,18 @@ fn main() {
app_screen.run();
}
fn app() -> Box<Text> {
fn app() -> Box<Tab> {
oml!(
text("Hello, World!";)
tab {
text("Hello!"; style = Style {
hover_fg: Color::Red,
..Default::default()
})
button("Hello 2!"; y = 1, style = Style {
hover_fg: Color::Green,
..Default::default()
})
menu(items = vec![String::from("Hello, World!"), String::from("Item 2!")])
}
)
}