makepad/apps/amp/resources/layouts/widget.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

38 lines
1.1 KiB
Text

// title: Widget
// class: tiny
// order: 40
// min: 320x140
// pref: 340x150
//
// The smallest player, in two rows on the style's own chassis: the time in
// big segments beside the title (scrolling while it plays); then previous,
// play and next, and the volume with its level. Everything else is in the
// ≡ menu (or a right-click), Space plays, Cmd+arrows skip.
use mod.prelude.widgets_internal.*
use mod.widgets.*
mod.widgets.HwLayout = View{
width: Fill
height: Fill
flow: Down
spacing: 6
View{
width: Fill
height: Fill
flow: Right
spacing: 6
mod.widgets.HwSlot{component: "clock" width: 118 height: Fill}
mod.widgets.HwSlot{component: "marquee" width: Fill height: Fill}
}
// 44: the volume slider's slot is a finger's target.
View{
width: Fill
height: 44
flow: Right
spacing: 8
align: Align{y: 0.5}
mod.widgets.HwSlot{component: "transport" width: 172 height: Fill}
mod.widgets.HwSlot{component: "volume" width: Fill height: Fill}
}
}
true