iPad header: three rows — rig controls inline, Tempo/Tuner own row
Split the header into the requested three rows: Row 1: ShoeGaze title · [Bypass · Mute · Help · MIDI filling to the scope] · scope · Start/Record Row 2: Tempo · Tuner Row 3: Rigs · Pedals · Settings Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -500,10 +500,9 @@ 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 on the left, then the performance controls filling the space to its right
|
// Row 1: title, then the rig-wide controls filling the space to its right (a scroll view
|
||||||
// (a scroll view flexes to the gap between the title and the scope, so it never collides
|
// flexes to the gap between the title and the scope), then scope + transport. Row 2: Tempo /
|
||||||
// with the scope and scrolls when the width is tight). Scope + transport on the right; the
|
// Tuner. Row 3: the composition sheet-openers.
|
||||||
// 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) {
|
||||||
@@ -515,7 +514,7 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
if shoeGaze.isRecording { recordingBadge }
|
if shoeGaze.isRecording { recordingBadge }
|
||||||
}
|
}
|
||||||
|
|
||||||
compactPerformanceRow
|
compactRigControlsRow
|
||||||
|
|
||||||
// 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)
|
||||||
@@ -537,16 +536,20 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
|
TempoView(shoeGaze: shoeGaze)
|
||||||
|
TunerView(shoeGaze: shoeGaze)
|
||||||
|
}
|
||||||
|
.environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled)
|
||||||
|
|
||||||
compactPanelRow
|
compactPanelRow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The performance-control row: Tempo / Tuner plus the rig-wide Bypass / Mute / Help / MIDI.
|
/// The rig-wide controls shown inline on the title row: Bypass / Mute / Help / MIDI.
|
||||||
private var compactPerformanceRow: some View {
|
private var compactRigControlsRow: some View {
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
TempoView(shoeGaze: shoeGaze)
|
|
||||||
TunerView(shoeGaze: shoeGaze)
|
|
||||||
rigBypassButton
|
rigBypassButton
|
||||||
// fixedSize stops the switch Toggle from expanding to fill the row (which pushed
|
// fixedSize stops the switch Toggle from expanding to fill the row (which pushed
|
||||||
// the following controls far to the right, under the scope).
|
// the following controls far to the right, under the scope).
|
||||||
@@ -562,7 +565,6 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The composition-panel row: buttons that open the Rigs / Pedals / Settings sheets.
|
/// The composition-panel row: buttons that open the Rigs / Pedals / Settings sheets.
|
||||||
|
|||||||
Reference in New Issue
Block a user