Fixed bad scissor

This commit is contained in:
2025-11-01 23:19:22 +01:00
parent dbd16956dd
commit 0e3c1ccafe
2 changed files with 1 additions and 33 deletions
-32
View File
@@ -1,32 +0,0 @@
use std::sync::Arc;
use osui::prelude::*;
fn main() -> std::io::Result<()> {
let screen = Screen::new();
app(screen.clone()).draw(&screen);
screen.run()
}
pub fn app(_screen: Arc<Screen>) -> Rsx {
rsx! {
FlexRow, gap: 1, {
@Style { foreground: Some(0xffffff), background: Background::Solid(0x00ff00) };
FlexRow {
@Transform::new().padding(1, 1).dimensions(40, 1);
@Style { foreground: Some(0xffffff), background: Background::RoundedOutline(0xff0000) };
@Focused;
Input { }
}
// @Style { foreground: Some(0xffffff), background: Background::Solid(0x00ff00) };
// FlexRow {
// @Transform::new().padding(1, 1).dimensions(40, 1);
// @Style { foreground: Some(0xffffff), background: Background::RoundedOutline(0xffff00) };
// Input { }
// }
}
}
}