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:
parent
a565919a7d
commit
38dcd54b76
|
@ -133,9 +133,9 @@ struct ContentView_Previews: PreviewProvider {
|
||||||
|
|
||||||
watchState.bgReadingValues = bgValueArray()
|
watchState.bgReadingValues = bgValueArray()
|
||||||
watchState.bgReadingDates = bgDateArray()
|
watchState.bgReadingDates = bgDateArray()
|
||||||
watchState.isMgDl = true
|
watchState.isMgDl = false
|
||||||
watchState.slopeOrdinal = 5
|
watchState.slopeOrdinal = 3
|
||||||
watchState.deltaChangeInMgDl = 0
|
watchState.deltaChangeInMgDl = 2
|
||||||
watchState.urgentLowLimitInMgDl = 60
|
watchState.urgentLowLimitInMgDl = 60
|
||||||
watchState.lowLimitInMgDl = 80
|
watchState.lowLimitInMgDl = 80
|
||||||
watchState.highLimitInMgDl = 140
|
watchState.highLimitInMgDl = 140
|
||||||
|
|
|
@ -17,7 +17,7 @@ struct HeaderView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
HStack(alignment: .lastTextBaseline) {
|
HStack(alignment: .lastTextBaseline) {
|
||||||
Text("\(watchState.bgValueStringInUserChosenUnit())\(watchState.trendArrow())")
|
Text("\(watchState.bgValueStringInUserChosenUnit())\(watchState.trendArrow())")
|
||||||
.font(.system(size: isSmallScreen ? 45 : 55)).fontWeight(.semibold)
|
.font(.system(size: isSmallScreen ? 40 : 50)).fontWeight(.semibold)
|
||||||
.foregroundStyle(watchState.bgTextColor())
|
.foregroundStyle(watchState.bgTextColor())
|
||||||
.scaledToFill()
|
.scaledToFill()
|
||||||
.minimumScaleFactor(0.5)
|
.minimumScaleFactor(0.5)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"originHash" : "20a19467224593c1dcb0789843c73f4580a23d8227b26f5a2c54d6c62c75927e",
|
||||||
"pins" : [
|
"pins" : [
|
||||||
{
|
{
|
||||||
"identity" : "actionclosurable",
|
"identity" : "actionclosurable",
|
||||||
|
@ -37,5 +38,5 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version" : 2
|
"version" : 3
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ enum ConstantsGlucoseChartSwiftUI {
|
||||||
static let viewHeightWatchApp: CGFloat = 90
|
static let viewHeightWatchApp: CGFloat = 90
|
||||||
|
|
||||||
// watch chart sizes for smaller watches
|
// watch chart sizes for smaller watches
|
||||||
static let viewWidthWatchAppSmall: CGFloat = 175
|
static let viewWidthWatchAppSmall: CGFloat = 155
|
||||||
static let viewHeightWatchAppSmall: CGFloat = 75
|
static let viewHeightWatchAppSmall: CGFloat = 75
|
||||||
|
|
||||||
static let lowHighLineColorWatchApp = Color(white: 0.6)
|
static let lowHighLineColorWatchApp = Color(white: 0.6)
|
||||||
|
|
Loading…
Reference in New Issue