Dev 32: full-width unfolded stem bars, roomier rows, fixed tab bar slots across fold

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-19 15:22:03 -08:00
1 parent 2dca5467db
commit d248abf143
3 files changed
+26 -29

No files matched your search

@@ -742,7 +742,7 @@ private struct MixerPanel: View {
// Spread spare height across the stem rows instead of leaving it all at the bottom.
let count = CGFloat(max(names.count, 1))
// Rows shrink to fit every stem before anything has to scroll (the folded outer display is short).
let rowH = roomy ? min(80, max(Self.roomyMin, (geo.size.height - Self.roomyChrome) / count))
let rowH = roomy ? min(84, max(Self.roomyMin, (geo.size.height - Self.roomyChrome) / count))
: min(62, max(spread ? Self.foldedMin : Self.compactMin, (geo.size.height - chipsH - 8) / count))
// Gap above the rows that centres them on the whole panel, not just the space under the chips.
let lead = max(0, (geo.size.height - rowH * count) / 2 - chipsH)
@@ -774,9 +774,6 @@ private struct MixerPanel: View {
StemFader(name: name, setting: pm.mix[name] ?? StemSetting(), level: i < levels.count ? levels[i] : 0, enabled: stems, height: rowH, roomy: roomy)
}
}
// Wide panes keep the faders a sensible length, centred across the panel.
.frame(maxWidth: roomy ? 560 : .infinity)
.frame(maxWidth: .infinity)
}
Spacer(minLength: 8)
}
@@ -845,7 +842,7 @@ extension MixerPanel {
static let roomyRow: CGFloat = 66
/// Shortest stacked row: name line, fader and the gap under it.
static let roomyMin: CGFloat = 60
static let roomyMin: CGFloat = 68
/// Shortest side-by-side row, the fader's own height.
static let compactMin: CGFloat = 30
static let foldedMin: CGFloat = 40
@@ -921,7 +918,7 @@ struct FaderRow<Fader: View, Trailing: View>: View {
var body: some View {
if stacked {
// Bottom-aligned with a gap under, so each name sits clear of the meter above it.
VStack(alignment: .leading, spacing: 2) {
VStack(alignment: .leading, spacing: 6) {
HStack(spacing: 6) {
if let dot { Circle().fill(dot).frame(width: 8, height: 8) }
Text(label).font(.subheadline.weight(.semibold)).foregroundStyle(dim ? p.label2 : p.label).lineLimit(1)
@@ -931,7 +928,7 @@ struct FaderRow<Fader: View, Trailing: View>: View {
.frame(height: 18)
HStack(spacing: 8) { fader; trailing }
}
.padding(.bottom, 4)
.padding(.bottom, 10)
.frame(height: height, alignment: .bottom)
} else {
row