diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index b0c571a..212d7c2 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -500,10 +500,9 @@ public struct ShoeGazeBuilderView: View { /// horizontally scrollable row of panel toggles that open the composition sheets. private var compactHeader: some View { _ = transportTick - // Top row: title on the left, then the performance controls filling the space to its right - // (a scroll view flexes to the gap between the title and the scope, so it never collides - // with the scope and scrolls when the width is tight). Scope + transport on the right; the - // composition sheet-openers get their own row beneath. + // Row 1: title, then the rig-wide controls filling the space to its right (a scroll view + // flexes to the gap between the title and the scope), then scope + transport. Row 2: Tempo / + // Tuner. Row 3: the composition sheet-openers. return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { @@ -515,7 +514,7 @@ public struct ShoeGazeBuilderView: View { if shoeGaze.isRecording { recordingBadge } } - compactPerformanceRow + compactRigControlsRow // A narrow scope sits left of the transport cluster to use the header's dead space. 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 } } - /// The performance-control row: Tempo / Tuner plus the rig-wide Bypass / Mute / Help / MIDI. - private var compactPerformanceRow: some View { + /// The rig-wide controls shown inline on the title row: Bypass / Mute / Help / MIDI. + private var compactRigControlsRow: some View { ScrollView(.horizontal, showsIndicators: false) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { - TempoView(shoeGaze: shoeGaze) - TunerView(shoeGaze: shoeGaze) rigBypassButton // fixedSize stops the switch Toggle from expanding to fill the row (which pushed // 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.