makepad/apps/amp/resources/layouts/strip.splash
Admin 922a61736d apps: Code, Translator, Weather, Amp and the rest
Makepad Code (editor layout, selection, sidebar, early yield), the EN/ZH
Translator with voice, Weather with a generated offline forecast, Amp
playing its offline library, and fixes
across the other apps and examples.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 12:26:21 +02:00

30 lines
954 B
Text

// title: Strip
// class: pocket
// order: 50
// min: 300x94
// pref: 320x100
//
// The compact form a window manager asks for when it parks Amp small beside
// the work (compact form "strip", 320x100; see Amp's `compact_forms`). Never
// picked by window size: what plays on top, the record and the title over the
// artist; under it previous, play and next beside the mini spectrum. The rail
// is gone; everything else is in the full layout the window returns to.
use mod.prelude.widgets_internal.*
use mod.widgets.*
mod.widgets.HwLayout = View{
width: Fill
height: Fill
flow: Down
spacing: 4
mod.widgets.HwSlot{component: "now" width: Fill height: 58}
View{
width: Fill
height: Fill
flow: Right
spacing: 6
align: Align{y: 0.5}
mod.widgets.HwSlot{component: "transport" width: 172 height: Fill}
mod.widgets.HwSlot{component: "spectrum" width: Fill height: Fill}
}
}