Simple velocity example

This commit is contained in:
2025-11-02 10:49:25 +01:00
parent f5d1b42db4
commit 68d00be96c
3 changed files with 47 additions and 8 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ pub fn app(screen: Arc<Screen>) -> Rsx {
FlexRow
{
"Username"
@Transform::new().padding(1, 1).dimensions(40, 1);
@Transform::new().padding(1, 1).dimensions_const(40, 1);
@Style { foreground: Some(0xffffff), background: Background::RoundedOutline(0xff0000) };
@Focused;
Input { }
@@ -73,7 +73,7 @@ pub fn app(screen: Arc<Screen>) -> Rsx {
FlexRow
{
"Password"
@Transform::new().padding(1, 1).dimensions(40, 1);
@Transform::new().padding(1, 1).dimensions_const(40, 1);
@Style { foreground: Some(0xffffff), background: Background::RoundedOutline(0xffff00) };
Input { }
}