From 5f98dfc15c3e11d19a2e3097720c7189f8d0e93f Mon Sep 17 00:00:00 2001 From: Robin Kutesa Date: Thu, 21 May 2026 14:44:38 +0300 Subject: [PATCH] =?UTF-8?q?Match=20storage=20stats=20to=20stats=20strip=20?= =?UTF-8?q?=E2=80=94=20plain=20inline,=20no=20card=20background?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed gray card background/clipShape. storageStat now uses 30pt light monospacedDigit with statDividers, identical to compactStat on page 0. Consistent design across all pages. Co-Authored-By: Kutesir Co-Authored-By: Sentry --- Features/Backup/BackupView.swift | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/Features/Backup/BackupView.swift b/Features/Backup/BackupView.swift index 22f453c..61c3762 100644 --- a/Features/Backup/BackupView.swift +++ b/Features/Backup/BackupView.swift @@ -872,26 +872,17 @@ struct BackupView: View { @ViewBuilder private var page1BelowContent: some View { - // Storage stats card + // Storage stats — plain inline, matches stats strip design HStack(spacing: 0) { storageStat(String(format: "%.0f GB", deviceUsedGB), label: "USED", color: Color(red: 1.0, green: 0.58, blue: 0.0)) - Rectangle() - .fill(AppTheme.separator.opacity(0.35)) - .frame(width: 0.5) - .padding(.vertical, 14) + statDivider storageStat(String(format: "%.0f GB", deviceFreeGB), label: "FREE", color: AppTheme.inkSecondary) - Rectangle() - .fill(AppTheme.separator.opacity(0.35)) - .frame(width: 0.5) - .padding(.vertical, 14) + statDivider storageStat(String(format: "%.1f GB", junkGB), label: "JUNK", color: AppTheme.positive) } - .frame(maxWidth: .infinity) - .background(AppTheme.surfaceSunken) - .clipShape(RoundedRectangle(cornerRadius: 18, style: .continuous)) .padding(.horizontal, AppTheme.hPad) .padding(.bottom, 18) @@ -996,18 +987,17 @@ struct BackupView: View { // MARK: — Storage helpers private func storageStat(_ value: String, label: String, color: Color) -> some View { - VStack(spacing: 6) { + VStack(spacing: 4) { Text(value) - .font(.system(size: 36, weight: .light)) + .font(.system(size: 30, weight: .light)) .foregroundStyle(color) .monospacedDigit() Text(label) - .font(.system(size: 10, weight: .regular, design: .monospaced)) + .font(.system(size: 10, weight: .regular)) .foregroundStyle(AppTheme.inkQuaternary) - .tracking(1.5) } .frame(maxWidth: .infinity) - .padding(.vertical, 22) + .padding(.vertical, 8) } private func storageLegend(color: Color, label: String) -> some View {