watch app corrections

- for 40mm watch size
- slightly reduce bg value size to prevent truncating when xx.x values in mmol/L
This commit is contained in:
Paul Plant 2024-03-26 12:54:35 +00:00
parent a565919a7d
commit 38dcd54b76
4 changed files with 7 additions and 6 deletions

View File

@ -133,9 +133,9 @@ struct ContentView_Previews: PreviewProvider {
watchState.bgReadingValues = bgValueArray()
watchState.bgReadingDates = bgDateArray()
watchState.isMgDl = true
watchState.slopeOrdinal = 5
watchState.deltaChangeInMgDl = 0
watchState.isMgDl = false
watchState.slopeOrdinal = 3
watchState.deltaChangeInMgDl = 2
watchState.urgentLowLimitInMgDl = 60
watchState.lowLimitInMgDl = 80
watchState.highLimitInMgDl = 140

View File

@ -17,7 +17,7 @@ struct HeaderView: View {
var body: some View {
HStack(alignment: .lastTextBaseline) {
Text("\(watchState.bgValueStringInUserChosenUnit())\(watchState.trendArrow())")
.font(.system(size: isSmallScreen ? 45 : 55)).fontWeight(.semibold)
.font(.system(size: isSmallScreen ? 40 : 50)).fontWeight(.semibold)
.foregroundStyle(watchState.bgTextColor())
.scaledToFill()
.minimumScaleFactor(0.5)

View File

@ -1,4 +1,5 @@
{
"originHash" : "20a19467224593c1dcb0789843c73f4580a23d8227b26f5a2c54d6c62c75927e",
"pins" : [
{
"identity" : "actionclosurable",
@ -37,5 +38,5 @@
}
}
],
"version" : 2
"version" : 3
}

View File

@ -62,7 +62,7 @@ enum ConstantsGlucoseChartSwiftUI {
static let viewHeightWatchApp: CGFloat = 90
// watch chart sizes for smaller watches
static let viewWidthWatchAppSmall: CGFloat = 175
static let viewWidthWatchAppSmall: CGFloat = 155
static let viewHeightWatchAppSmall: CGFloat = 75
static let lowHighLineColorWatchApp = Color(white: 0.6)