background

This commit is contained in:
2025-07-30 00:15:40 +02:00
parent 5d1361621d
commit ae16c9a69e
6 changed files with 94 additions and 34 deletions
+3 -14
View File
@@ -10,19 +10,8 @@ fn main() -> std::io::Result<()> {
fn app() -> Rsx {
rsx! {
@transform! {
width: Full,
height: Full,
};
Div {
@transform! {
width: Full,
height: Full,
};
RoundedOutline {}
@Transform::center();
"Welcome To OSUI!"
} (0x000000)
@Transform::new();
@Style { background: Background::RoundedOutline(0xff0000), foreground: None };
Div { @Transform::center(); "Hello, World!" }
}
}