Improve stats look

main
Laurent 3 years ago
parent 0522ca17cf
commit 845b9a7eac
  1. 1
      LeCountdown/Views/Stats/ActivitiesView.swift
  2. 7
      LeCountdown/Views/Stats/StatisticsSubView.swift
  3. 5
      LeCountdown/Views/Stats/StatisticsView.swift

@ -38,7 +38,6 @@ struct ActivitiesView: View {
Text(activity.name ?? "no activity")
Spacer()
Text(activity.recordCount)
.font(.system(.body, weight: .bold))
.foregroundColor(.accentColor)
}
}

@ -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)
}
}
}
}

@ -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)
}
}

Loading…
Cancel
Save