From 845b9a7eacddd435fa2fe1fdf13fe27e66be8876 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 14 Apr 2023 15:24:26 +0200 Subject: [PATCH] Improve stats look --- LeCountdown/Views/Stats/ActivitiesView.swift | 1 - LeCountdown/Views/Stats/StatisticsSubView.swift | 7 ++++++- LeCountdown/Views/Stats/StatisticsView.swift | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/LeCountdown/Views/Stats/ActivitiesView.swift b/LeCountdown/Views/Stats/ActivitiesView.swift index c7aca1e..6fc1bde 100644 --- a/LeCountdown/Views/Stats/ActivitiesView.swift +++ b/LeCountdown/Views/Stats/ActivitiesView.swift @@ -38,7 +38,6 @@ struct ActivitiesView: View { Text(activity.name ?? "no activity") Spacer() Text(activity.recordCount) - .font(.system(.body, weight: .bold)) .foregroundColor(.accentColor) } } diff --git a/LeCountdown/Views/Stats/StatisticsSubView.swift b/LeCountdown/Views/Stats/StatisticsSubView.swift index 276bb66..777a647 100644 --- a/LeCountdown/Views/Stats/StatisticsSubView.swift +++ b/LeCountdown/Views/Stats/StatisticsSubView.swift @@ -24,7 +24,12 @@ struct StatisticsSubView: View { StatisticsView(activity: self.activity, filter: filter) { statValues in HStack { if let count = statValues.first(where: { $0.stat == .count }) { - LabeledContent(filter.localizedString, value: count.formattedValue) + + HStack { + Text(filter.localizedString) + Spacer() + Text(count.formattedValue).foregroundColor(.accentColor) + } } } } diff --git a/LeCountdown/Views/Stats/StatisticsView.swift b/LeCountdown/Views/Stats/StatisticsView.swift index 1a65078..84e3c00 100644 --- a/LeCountdown/Views/Stats/StatisticsView.swift +++ b/LeCountdown/Views/Stats/StatisticsView.swift @@ -79,8 +79,9 @@ struct StatView: View { Text(self.statValue.stat.localizedName.uppercased()) .font(.footnote) Text(self.statValue.formattedValue) - .font(.system(.title, weight: .bold)) - } + .font(.system(.title, weight: .light)) + .foregroundColor(.accentColor) + }.padding(.vertical, 4.0) } }