diff --git a/NucleicRemote/NucleicRemote/Views/HomeView.swift b/NucleicRemote/NucleicRemote/Views/HomeView.swift index 5447462..2259630 100644 --- a/NucleicRemote/NucleicRemote/Views/HomeView.swift +++ b/NucleicRemote/NucleicRemote/Views/HomeView.swift @@ -196,8 +196,12 @@ struct ActivityGrid: View { VStack(spacing: gap) { ForEach(0..<7, id: \.self) { row in let date = cal.date(byAdding: .day, value: col * 7 + row, to: gridStart)! + let isFuture = date > today + let isFrozen = !isFuture && frozenDays.contains(date) RoundedRectangle(cornerRadius: 2) - .fill(date > today ? Color.clear : Palette.activity(level: Self.level(activityByDay[date] ?? 0))) + .fill(isFuture ? Color.clear + : isFrozen ? Palette.frozen + : Palette.activity(level: Self.level(activityByDay[date] ?? 0))) .frame(width: cell, height: cell) } }