|
@@ -10,23 +10,18 @@ struct LiveActivityBGLabelLargeView: View {
|
|
|
|
|
|
|
|
var body: some View {
|
|
var body: some View {
|
|
|
HStack(alignment: .center) {
|
|
HStack(alignment: .center) {
|
|
|
- if let trendArrow = context.state.direction {
|
|
|
|
|
- Text(context.state.bg)
|
|
|
|
|
- .fontWeight(.bold)
|
|
|
|
|
- .font(!isWatchOS ? .title : .title3)
|
|
|
|
|
- .foregroundStyle(context.isStale ? .secondary : glucoseColor)
|
|
|
|
|
- .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6))
|
|
|
|
|
|
|
+ Text(context.state.bg)
|
|
|
|
|
+ .fontWeight(.bold)
|
|
|
|
|
+ .font(!isWatchOS ? .title : .title3)
|
|
|
|
|
+ .foregroundStyle(context.isStale ? .secondary : glucoseColor)
|
|
|
|
|
+ .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6))
|
|
|
|
|
|
|
|
|
|
+ if let trendArrow = context.state.direction {
|
|
|
Text(trendArrow)
|
|
Text(trendArrow)
|
|
|
.foregroundStyle(context.isStale ? .secondary : glucoseColor)
|
|
.foregroundStyle(context.isStale ? .secondary : glucoseColor)
|
|
|
.fontWeight(.bold)
|
|
.fontWeight(.bold)
|
|
|
.font(!isWatchOS ? .headline : .subheadline)
|
|
.font(!isWatchOS ? .headline : .subheadline)
|
|
|
- } else {
|
|
|
|
|
- Text(context.state.bg)
|
|
|
|
|
- .fontWeight(.bold)
|
|
|
|
|
- .font(!isWatchOS ? .title : .title3)
|
|
|
|
|
- .foregroundStyle(context.isStale ? .secondary : glucoseColor)
|
|
|
|
|
- .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6))
|
|
|
|
|
|
|
+ .padding(.leading, !isWatchOS ? 0 : -5)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|