From 22ae022143f62fad2f3fa496437d87977f9fbdae Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Sat, 4 Jul 2026 21:12:54 -0700 Subject: [PATCH] iPad header: group rig controls with Tempo/Tuner; rename title to "ShoeGaze" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the rig-wide controls (Bypass / Mute rig / Help / MIDI) off the composition row and onto a performance row alongside Tempo/Tuner, under the title — separating performance controls from the composition sheet-openers (Rigs / Pedals / Settings), which now get their own row. Both rows are full-width so nothing clips in portrait. Rename the header title from "ShoeGaze Builder" to "ShoeGaze" — it's an app now, not a template placeholder. Co-Authored-By: Claude Opus 4.8 --- .../ShoeGazeBuilderView.swift | 46 +++++++++++-------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift index eb8f99b..4485412 100644 --- a/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift +++ b/Sources/LyrebirdShoeGazeUI/ShoeGazeBuilderView.swift @@ -505,21 +505,13 @@ public struct ShoeGazeBuilderView: View { // it is never clipped by the scope in the narrower portrait width. return VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { - VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) { - HStack(spacing: ShoeGazeBuilderView.rowSpacing) { - VStack(alignment: .leading, spacing: 1) { - Text("ShoeGaze Builder").font(.headline).bold() - .foregroundStyle(Color.white) - currentRigLabel - } - if shoeGaze.isRecording { recordingBadge } + HStack(spacing: ShoeGazeBuilderView.rowSpacing) { + VStack(alignment: .leading, spacing: 1) { + Text("ShoeGaze").font(.headline).bold() + .foregroundStyle(Color.white) + currentRigLabel } - - HStack(spacing: ShoeGazeBuilderView.rowSpacing) { - TempoView(shoeGaze: shoeGaze) - TunerView(shoeGaze: shoeGaze) - } - .environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled) + if shoeGaze.isRecording { recordingBadge } } Spacer(minLength: ShoeGazeBuilderView.rowSpacing) @@ -544,17 +536,19 @@ 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 } } - /// The scrollable row of composition-sheet toggles + rig-wide controls. - private var compactPanelRow: some View { + /// The performance-control row: Tempo / Tuner plus the rig-wide Bypass / Mute / Help / MIDI. + private var compactPerformanceRow: some View { ScrollView(.horizontal, showsIndicators: false) { HStack(spacing: ShoeGazeBuilderView.rowSpacing) { - compactPanelButton("Rigs", systemImage: "tray.full") { showRigsSheet = true } - compactPanelButton("Pedals", systemImage: "plus.app") { showPaletteSheet = true } - compactPanelButton("Settings", systemImage: "gearshape") { showSettingsSheet = true } + TempoView(shoeGaze: shoeGaze) + TunerView(shoeGaze: shoeGaze) rigBypassButton Toggle("Mute rig", isOn: Binding( get: { shoeGaze.tunerMutesRig }, @@ -567,6 +561,18 @@ public struct ShoeGazeBuilderView: View { } } } + .environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled) + } + + /// The composition-panel row: buttons that open the Rigs / Pedals / Settings sheets. + private var compactPanelRow: some View { + ScrollView(.horizontal, showsIndicators: false) { + HStack(spacing: ShoeGazeBuilderView.rowSpacing) { + compactPanelButton("Rigs", systemImage: "tray.full") { showRigsSheet = true } + compactPanelButton("Pedals", systemImage: "plus.app") { showPaletteSheet = true } + compactPanelButton("Settings", systemImage: "gearshape") { showSettingsSheet = true } + } + } } /// The recording indicator badge (extracted so both header variants can show it). @@ -872,7 +878,7 @@ public struct ShoeGazeBuilderView: View { _ = transportTick return HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) { VStack(alignment: .leading, spacing: 1) { - Text("ShoeGaze Builder") + Text("ShoeGaze") .font(.title2).bold() .foregroundStyle(Color.white) currentRigLabel