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(