Compare commits

...

2 Commits

Author SHA1 Message Date
Johan Degraeve 6377df1f69
Merge pull request #535 from paulplant/develop
update background color for Watch accessoryRegular complication
2024-05-05 12:40:03 +02:00
Paul Plant e2b4b1b51e update background color for Watch accessoryRegular complication
- the previous/default black background wouldn't render on Watchfaces that had a colour scheme applied
2024-05-05 11:41:22 +02:00
2 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,7 @@ enum ConstantsGlucoseChartSwiftUI {
static let viewHeightWatchAccessoryRectangular: CGFloat = 55
static let hoursToShowWatchAccessoryRectangular: Double = 5
static let glucoseCircleDiameterWatchAccessoryRectangular: Double = 14
static let backgroundColorWatchAccessoryRectangular: Color = .clear
// watch complication sizes for smaller watches
static let viewWidthWatchAccessoryRectangularSmall: CGFloat = 160

View File

@ -144,6 +144,8 @@ public enum GlucoseChartType: Int, CaseIterable {
switch self {
case .siriGlucoseIntent:
return ConstantsGlucoseChartSwiftUI.backgroundColorSiriGlucoseIntent
case .watchAccessoryRectangular:
return ConstantsGlucoseChartSwiftUI.backgroundColorWatchAccessoryRectangular
default:
return .black
}