iPad header: place performance controls inline, right of the title
Move the performance row (Tempo / Tuner / Bypass / Mute / Help / MIDI) up onto the title row, filling the space between the title and the scope. As a horizontal scroll view it flexes to the available gap — shows in full in landscape, scrolls when tight in portrait — and no longer sits beneath the scope. The composition sheet-openers (Rigs / Pedals / Settings) remain on the row beneath. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -500,9 +500,10 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
/// horizontally scrollable row of panel toggles that open the composition sheets.
|
/// horizontally scrollable row of panel toggles that open the composition sheets.
|
||||||
private var compactHeader: some View {
|
private var compactHeader: some View {
|
||||||
_ = transportTick
|
_ = transportTick
|
||||||
// Top row: title + Tempo/Tuner on the left, scope + transport on the right. The panel row
|
// Top row: title on the left, then the performance controls filling the space to its right
|
||||||
// (Rigs / Pedals / Settings / Bypass / Mute / help / MIDI) spans the FULL width beneath, so
|
// (a scroll view flexes to the gap between the title and the scope, so it never collides
|
||||||
// it is never clipped by the scope in the narrower portrait width.
|
// with the scope and scrolls when the width is tight). Scope + transport on the right; the
|
||||||
|
// composition sheet-openers get their own row beneath.
|
||||||
return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) {
|
return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) {
|
HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
@@ -514,7 +515,7 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
if shoeGaze.isRecording { recordingBadge }
|
if shoeGaze.isRecording { recordingBadge }
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(minLength: ShoeGazeBuilderView.rowSpacing)
|
compactPerformanceRow
|
||||||
|
|
||||||
// A narrow scope sits left of the transport cluster to use the header's dead space.
|
// A narrow scope sits left of the transport cluster to use the header's dead space.
|
||||||
ShoeGazeScopeView(shoeGaze: shoeGaze)
|
ShoeGazeScopeView(shoeGaze: shoeGaze)
|
||||||
@@ -536,9 +537,6 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Performance controls (tempo, tuner, and the rig-wide toggles) sit together on the row
|
|
||||||
// under the title; the composition sheet-openers get their own row beneath.
|
|
||||||
compactPerformanceRow
|
|
||||||
compactPanelRow
|
compactPanelRow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user