From 86b0ce368a6866d4539c9b9f4644dd9806622050 Mon Sep 17 00:00:00 2001 From: Arnfried Griesert Date: Wed, 26 Jul 2023 11:29:33 +0000 Subject: [PATCH] Changed colors for notification times buttons --- bwi/NotificationTimes/NotificationTimesView.swift | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bwi/NotificationTimes/NotificationTimesView.swift b/bwi/NotificationTimes/NotificationTimesView.swift index 834353bf4..2f1e4d977 100644 --- a/bwi/NotificationTimes/NotificationTimesView.swift +++ b/bwi/NotificationTimes/NotificationTimesView.swift @@ -162,10 +162,16 @@ fileprivate struct WeekDayButton: View { .strokeBorder(Color.secondary, lineWidth: 1) .background(Circle().fill(.clear)) } - - Text(weekday.shortName) - .font(.subheadline) - .foregroundColor(.primary) + + if weekday.isEnabled { + Text(weekday.shortName) + .font(.subheadline) + .foregroundColor(Color(ThemeService.shared().theme.backgroundColor)) + } else { + Text(weekday.shortName) + .font(.subheadline) + .foregroundColor(Color(ThemeService.shared().theme.tintColor)) + } } .frame(width: 38, height: 38)