Preserve alternating row stripes under severity tints (#43)
Previously, severity row tints (error/warning/fatal) replaced the
alternating row background entirely. Use a ZStack so both layers
compose: the subtle stripe sits behind the severity tint, keeping
the zebra-stripe rhythm visible across all rows.
https://claude.ai/code/session_01LAz6LKR1Lwjm7Zi2cjADpG
Co-authored-by: Claude <noreply@anthropic.com>
commitce7a5dc10baae98e2e00a3ea36b30441913da814
authoriko <mail@iko.soy>
dateMon 16 Feb 2026, 02:16 (8 months ago)
parent21ad7ff
ParseableViewer/Views/LogTableView.swift+8−5
@@ -570,12 +570,15 @@ struct LogRowView: View {
570570 .background {
571571 if isSelected {
572572 Color.accentColor.opacity(0.2)
573− } else if let tint = severityRowTint(for: extractSeverity(from: record)) {
574− tint
575− } else if isAlternate {
576− Color.primary.opacity(0.02)
577573 } else {
578− Color.clear
574+ ZStack {
575+ if isAlternate {
576+ Color.primary.opacity(0.02)
577+ }
578+ if let tint = severityRowTint(for: extractSeverity(from: record)) {
579+ tint
580+ }
581+ }
579582 }
580583 }
581584 }