fix(rigs): address starter-rig feedback (toggle, Garcia, shimmer, input)
- Center the Mine/Starters toggle in the sidebar column. - Garcia rig: build it as two plain boards (effects + clean) selected via the multi-board Solo/Blend control, instead of a ChainRouter — the builder UI renders boards, not routers, so the router version showed empty boards. - Dreampop Chorus Cathedral: lower shimmer decay/feedback and delay feedback so the octave-up regeneration no longer screeches into runaway feedback. - Preserve the current input across rig switches: loadRig gains a keepingCurrentInput flag (default false → file open / launch restore still apply the rig's saved input; RigStore session-restore continuity intact), and the rig-switch path (loadEntry) passes true so a live guitar isn't snapped back to the test tone when changing rigs. Tests updated to cover both directions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,7 @@ struct RigLibrarySidebarView: View {
|
||||
private static let subtitleOpacity: Double = 0.5
|
||||
private static let headerOpacity: Double = 0.65
|
||||
private static let emptyOpacity: Double = 0.4
|
||||
private static let tabPickerWidth: CGFloat = 168
|
||||
|
||||
// MARK: - Inputs
|
||||
|
||||
@@ -139,7 +140,7 @@ struct RigLibrarySidebarView: View {
|
||||
}
|
||||
}
|
||||
|
||||
/// Segmented Mine / Starters switch at the top of the list.
|
||||
/// Segmented Mine / Starters switch, centered at the top of the list.
|
||||
private var tabPicker: some View {
|
||||
Picker("", selection: $tab) {
|
||||
ForEach(RigTab.allCases) { option in
|
||||
@@ -148,6 +149,9 @@ struct RigLibrarySidebarView: View {
|
||||
}
|
||||
.pickerStyle(.segmented)
|
||||
.labelsHidden()
|
||||
// Constrain the control's own width, then center it in the full column width.
|
||||
.frame(maxWidth: RigLibrarySidebarView.tabPickerWidth)
|
||||
.frame(maxWidth: .infinity, alignment: .center)
|
||||
}
|
||||
|
||||
/// The user's own rigs — a flat, reorderable list.
|
||||
|
||||
Reference in New Issue
Block a user