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.
|
// it is never clipped by the scope in the narrower portrait width.
|
||||||
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) {
|
||||||
VStack(alignment: .leading, spacing: ShoeGazeBuilderView.rowSpacing) {
|
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
VStack(alignment: .leading, spacing: 1) {
|
||||||
VStack(alignment: .leading, spacing: 1) {
|
Text("ShoeGaze").font(.headline).bold()
|
||||||
Text("ShoeGaze Builder").font(.headline).bold()
|
.foregroundStyle(Color.white)
|
||||||
.foregroundStyle(Color.white)
|
currentRigLabel
|
||||||
currentRigLabel
|
|
||||||
}
|
|
||||||
if shoeGaze.isRecording { recordingBadge }
|
|
||||||
}
|
}
|
||||||
|
if shoeGaze.isRecording { recordingBadge }
|
||||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
|
||||||
TempoView(shoeGaze: shoeGaze)
|
|
||||||
TunerView(shoeGaze: shoeGaze)
|
|
||||||
}
|
|
||||||
.environment(\.shoeGazeTempoEnabled, shoeGaze.tempoEnabled)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(minLength: ShoeGazeBuilderView.rowSpacing)
|
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
|
compactPanelRow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The scrollable row of composition-sheet toggles + rig-wide controls.
|
/// The performance-control row: Tempo / Tuner plus the rig-wide Bypass / Mute / Help / MIDI.
|
||||||
private var compactPanelRow: some View {
|
private var compactPerformanceRow: some View {
|
||||||
ScrollView(.horizontal, showsIndicators: false) {
|
ScrollView(.horizontal, showsIndicators: false) {
|
||||||
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
HStack(spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
compactPanelButton("Rigs", systemImage: "tray.full") { showRigsSheet = true }
|
TempoView(shoeGaze: shoeGaze)
|
||||||
compactPanelButton("Pedals", systemImage: "plus.app") { showPaletteSheet = true }
|
TunerView(shoeGaze: shoeGaze)
|
||||||
compactPanelButton("Settings", systemImage: "gearshape") { showSettingsSheet = true }
|
|
||||||
rigBypassButton
|
rigBypassButton
|
||||||
Toggle("Mute rig", isOn: Binding(
|
Toggle("Mute rig", isOn: Binding(
|
||||||
get: { shoeGaze.tunerMutesRig },
|
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).
|
/// The recording indicator badge (extracted so both header variants can show it).
|
||||||
@@ -872,7 +878,7 @@ public struct ShoeGazeBuilderView: View {
|
|||||||
_ = transportTick
|
_ = transportTick
|
||||||
return HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) {
|
return HStack(alignment: .top, spacing: ShoeGazeBuilderView.rowSpacing) {
|
||||||
VStack(alignment: .leading, spacing: 1) {
|
VStack(alignment: .leading, spacing: 1) {
|
||||||
Text("ShoeGaze Builder")
|
Text("ShoeGaze")
|
||||||
.font(.title2).bold()
|
.font(.title2).bold()
|
||||||
.foregroundStyle(Color.white)
|
.foregroundStyle(Color.white)
|
||||||
currentRigLabel
|
currentRigLabel
|
||||||
|
|||||||
Reference in New Issue
Block a user