From 4e58c9bd9b15c2cfbbbb9f40021fa775d91b6a1d Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Fri, 3 Jul 2026 22:19:14 -0700 Subject: [PATCH] Looper UI: make the selected track dot read as active MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A selected-but-empty track (e.g. A in the clear state) previously showed only a thin white ring on a dim dot — easy to read as "not lit." Give the selected track a bright letter and a lighter fill so the active track is obvious even before it's recorded. Combined with the poll re-subscribe fix, the dots now track the live selection. Co-Authored-By: Claude Opus 4.8 --- Sources/LyrebirdShoeGazeUI/LooperTimelineView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/LyrebirdShoeGazeUI/LooperTimelineView.swift b/Sources/LyrebirdShoeGazeUI/LooperTimelineView.swift index b90bc06..3d1c8a0 100644 --- a/Sources/LyrebirdShoeGazeUI/LooperTimelineView.swift +++ b/Sources/LyrebirdShoeGazeUI/LooperTimelineView.swift @@ -34,6 +34,7 @@ struct LooperTimelineView: View { private static let dotDiameter: CGFloat = 18 private static let dotLabelFontSize: CGFloat = 10 private static let dotBrightness: Double = 0.16 + private static let selectedDotBrightness: Double = 0.32 private static let dotFilledOpacity: Double = 0.55 private static let dotEmptyOpacity: Double = 0.45 private static let activeRingWidth: CGFloat = 1.5 @@ -114,11 +115,13 @@ struct LooperTimelineView: View { } label: { Text(LooperTimelineView.dotLabels[index]) .font(.system(size: LooperTimelineView.dotLabelFontSize, weight: .bold, design: .monospaced)) - .foregroundStyle(hasContent ? Color.white : Color.white.opacity(LooperTimelineView.dotEmptyOpacity)) + // Selected (or recorded) tracks show a bright letter; other empty tracks dim. + .foregroundStyle((hasContent || isSelected) ? Color.white : Color.white.opacity(LooperTimelineView.dotEmptyOpacity)) .frame(width: LooperTimelineView.dotDiameter, height: LooperTimelineView.dotDiameter) .background( Circle().fill(hasContent ? Color.green.opacity(LooperTimelineView.dotFilledOpacity) - : Color(white: LooperTimelineView.dotBrightness)) + : (isSelected ? Color(white: LooperTimelineView.selectedDotBrightness) + : Color(white: LooperTimelineView.dotBrightness))) ) .overlay(muteSlash(isMuted)) .overlay(