iPad header: group rig controls with Tempo/Tuner; rename title to "ShoeGaze"
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user