makepad/examples/splash_live/streams/calculator/01_layout.splash
Admin ec2bb0f985 apps: Camera, splash-live, Translator, Amp, Code, Route offline
New Camera app whose shots show up in Photos, and the splash_live example
(streamed live coding of Splash UI and shaders). Translator: speech and
photos run where the models run (hub or on-device), microphone opened only
on record. Amp: cubic volume, meters after volume, visualizer on the phone,
output open only while playing. Code: run errors marked in the editor,
start_app/list_apps through the WM. Route works offline from its cache.
apps/video plays through the platform's player.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 07:24:22 +02:00

13 lines
505 B
Text

// A calculator, written in Splash
View{width: Fill height: Fit align: Align{x: 0.5}
calc := RoundedView{width: 560 height: Fit flow: Down spacing: 16 padding: 28
show_bg: true new_batch: true
draw_bg.color: #x14161b
display := View{width: Fill height: 190 flow: Down spacing: 6 align: Align{x: 1.0 y: 1.0}
expr := Label{text: ""}
value := Label{text: "0"}
}
keys := View{width: Fill height: Fit flow: Down spacing: 14
}
}
}