From e462a0b4a5022b728054c35c3fe7f78050b28edd Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Mon, 15 Jun 2026 01:23:09 -0700 Subject: [PATCH] Nucleic: Update Icon Design --- NucleicRemote/NucleicRemote/Views/HomeView.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Views/HomeView.swift b/NucleicRemote/NucleicRemote/Views/HomeView.swift index 0059944..53aaa5e 100644 --- a/NucleicRemote/NucleicRemote/Views/HomeView.swift +++ b/NucleicRemote/NucleicRemote/Views/HomeView.swift @@ -134,20 +134,22 @@ private struct StatCard: View { } } -/// A flame whose heat grows with the streak (mirrors the Mac StreakBadge). +/// A lightning bolt whose charge grows with the streak (mirrors the Mac StreakBadge). struct StreakBadge: View { let days: Int private var intensity: Double { min(1, Double(max(0, days - 1)) / 20) } var body: some View { HStack(spacing: 6) { - Image(systemName: "flame.fill") + Image(systemName: "bolt.fill") .font(.system(size: 18 + 8 * intensity)) .foregroundStyle( LinearGradient(colors: [ - Color(hue: 0.03, saturation: 0.9, brightness: 1), - Color(hue: 0.10 + 0.04 * intensity, saturation: 0.9, brightness: 1), + Color(hue: 0.55 - 0.05 * intensity, saturation: 0.5 + 0.2 * intensity, brightness: 1), + Color(hue: 0.60, saturation: 0.85 + 0.15 * intensity, brightness: 1), ], startPoint: .top, endPoint: .bottom)) + .shadow(color: Color(hue: 0.56, saturation: 0.85, brightness: 1).opacity(0.3 + 0.5 * intensity), + radius: 1 + 6 * intensity) VStack(alignment: .leading, spacing: -2) { Text("\(days)").font(.headline.monospacedDigit()) Text("day streak").font(.caption2).foregroundStyle(.secondary)