Skip to content

Commit

Permalink
Non localalize
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-b-m committed Jan 27, 2025
1 parent a0ad386 commit e954d9f
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions FreeAPS/Sources/Modules/AutoISF/AutoISFHistoryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,23 @@ struct AutoISFHistoryView: View {

Divider()

let proMaxOffset_1: CGFloat = (device == "iPhone17,2" || device == "iPhone 15 Pro Max") ? -20 : -7
let proMaxOffset_1: CGFloat = (device == "iPhone17,2" || device == "iPhone 15 Pro Max") ? -21 : -9
let proMaxOffset_2: CGFloat = (device == "iPhone17,2" || device == "iPhone 15 Pro Max") ? -10 : 0

// SubTitle
// Non-localized variable acronyms
// Subtitle with non-localized variable acronyms
HStack(spacing: 10) {
Text("Time").foregroundStyle(.primary)
Text(verbatim: "Time").foregroundStyle(.primary)
Spacer(minLength: 1)
Text("BG ").foregroundStyle(Color(.loopGreen)).offset(x: proMaxOffset_1)
Text("Final").foregroundStyle(.red).offset(x: proMaxOffset_1)
Text("acce").foregroundStyle(.orange).offset(x: 2 + proMaxOffset_2)
Text("bg ").foregroundStyle(.orange).offset(x: 6 + proMaxOffset_2)
Text("dura ").foregroundStyle(.orange).offset(x: 6)
Text("pp ").foregroundStyle(.orange).offset(x: 4)
Text(verbatim: "BG ").foregroundStyle(Color(.loopGreen)).offset(x: proMaxOffset_1)
Text(verbatim: "Final").foregroundStyle(.red).offset(x: proMaxOffset_1)
Text(verbatim: "acce").foregroundStyle(.orange).offset(x: 2 + proMaxOffset_2)
Text(verbatim: "bg ").foregroundStyle(.orange).offset(x: 6 + proMaxOffset_2)
Text(verbatim: "dura ").foregroundStyle(.orange).offset(x: 6)
Text(verbatim: "pp ").foregroundStyle(.orange).offset(x: 4)
Spacer(minLength: 3)
Text("Req. ").foregroundColor(.secondary).offset(x: proMaxOffset_2 / 2)
Text("TBR ").foregroundColor(.blue).offset(x: proMaxOffset_2 / 2)
Text("SMB ").foregroundColor(.blue).offset(x: proMaxOffset_2 / 2)
Text(verbatim: "Req. ").foregroundColor(.secondary).offset(x: proMaxOffset_2 / 2)
Text(verbatim: "TBR ").foregroundColor(.blue).offset(x: proMaxOffset_2 / 2)
Text(verbatim: "SMB ").foregroundColor(.blue).offset(x: proMaxOffset_2 / 2)
}
.padding(.horizontal, 5)
.font(.system(size: 12))
Expand Down

0 comments on commit e954d9f

Please sign in to comment.