commit 9fd0157185c163e0bfe9cba9a7cb5f18f8f5377e
parent a28dff75ee62d78f964d0b65ffe195c8234b7f58
Author: Michael Camilleri <[email protected]>
Date: Wed, 21 Oct 2026 11:46:30 +0900
Use accent colours in Settings
Diffstat
| M | Reportage/Views/Settings/NotificationsView.swift | | | 3 | +++ |
| M | Reportage/Views/Settings/SettingsView.swift | | | 11 | +++++++---- |
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/Reportage/Views/Settings/NotificationsView.swift b/Reportage/Views/Settings/NotificationsView.swift
@@ -225,6 +225,9 @@ private struct WindowPicker: View {
.padding(.trailing, Theme.margin)
}
.background(Theme.paper)
+ // The list takes a header's insets from its outermost view,
+ // so the heading's own zero insets don't reach it here.
+ .listRowInsets(EdgeInsets())
}
.task(id: generation) { await load() }
}
diff --git a/Reportage/Views/Settings/SettingsView.swift b/Reportage/Views/Settings/SettingsView.swift
@@ -21,11 +21,14 @@ struct SettingsView: View {
NotificationsView()
} label: {
LabeledContent("Notifications") {
- if settings.isEnabled {
- Text("\(settings.perDay) / day", comment: "How many random prompts come each day")
- } else {
- Text("Off", comment: "Random prompts are turned off")
+ Group {
+ if settings.isEnabled {
+ Text("\(settings.perDay) / day", comment: "How many random prompts come each day")
+ } else {
+ Text("Off", comment: "Random prompts are turned off")
+ }
}
+ .foregroundStyle(Theme.accent)
}
}
.settingsRow()