Просмотр исходного кода

Adjust LA 'big' glucose view sizing for trend arrow

Deniz Cengiz 1 год назад
Родитель
Сommit
401d1562a9
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      LiveActivity/Views/WidgetItems/LiveActivityBGLabelLargeView.swift

+ 8 - 5
LiveActivity/Views/WidgetItems/LiveActivityBGLabelLargeView.swift

@@ -8,18 +8,21 @@ struct LiveActivityBGLabelLargeView: View {
     var glucoseColor: Color
 
     var body: some View {
-        HStack {
+        HStack(alignment: .center) {
             if let trendArrow = context.state.direction {
                 Text(context.state.bg)
-                    .fontWeight(.heavy)
+                    .fontWeight(.bold)
                     .font(.title)
                     .foregroundStyle(context.isStale ? .secondary : glucoseColor)
                     .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6))
-                    +
-                    Text(trendArrow).foregroundStyle(context.isStale ? .secondary : glucoseColor)
+
+                Text(trendArrow)
+                    .foregroundStyle(context.isStale ? .secondary : glucoseColor)
+                    .fontWeight(.bold)
+                    .font(.headline)
             } else {
                 Text(context.state.bg)
-                    .fontWeight(.heavy)
+                    .fontWeight(.bold)
                     .font(.title)
                     .foregroundStyle(context.isStale ? .secondary : glucoseColor)
                     .strikethrough(context.isStale, pattern: .solid, color: .red.opacity(0.6))