Skip to content

Commit

Permalink
Header View alignment adjustments.
Browse files Browse the repository at this point in the history
Added a bit of offset to mg/dl glucose values.
  • Loading branch information
Jon-b-m committed Sep 5, 2024
1 parent 2fd1996 commit f55ded1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct CurrentGlucoseView: View {
)
.font(.caption)
.foregroundStyle(.secondary)
.offset(x: 2, y: fontSize >= .extraLarge ? -3 : 0)
.offset(x: 1, y: fontSize >= .extraLarge ? -3 : 0)
}
}
}
Expand Down Expand Up @@ -153,13 +153,13 @@ struct CurrentGlucoseView: View {
Text(decimal[1]).font(.system(size: 28)).baselineOffset(-10)
}
.tracking(-1)
.offset(x: 0, y: 14)
.offset(x: -2, y: 14)
.foregroundColor(alwaysUseColors ? colorOfGlucose : alarm == nil ? .primary : .loopRed)
} else {
Text(string)
.font(.glucoseFontMdDl.width(.condensed)) // .tracking(-2)
.foregroundColor(alwaysUseColors ? colorOfGlucose : alarm == nil ? .primary : .loopRed)
.offset(x: 0, y: 16)
.offset(x: string.count > 2 ? -2 : -1, y: 16)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Modules/Home/View/Header/LoopView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct LoopView: View {
}
}.dynamicTypeSize(...DynamicTypeSize.xLarge)
}
}
}.offset(y: 5)
}

private var minutesAgo: Int {
Expand Down

0 comments on commit f55ded1

Please sign in to comment.