Deniz Cengiz пре 1 година
родитељ
комит
0c5e5f9501

+ 1 - 1
FreeAPS/Sources/Modules/AlgorithmVariousSettings/View/AlgorithmVariousRootView.swift

@@ -270,7 +270,7 @@ extension AlgorithmVarious {
                     shouldDisplayHint: $shouldDisplayHint,
                     hintLabel: hintLabel ?? "",
                     hintText: selectedVerboseHint ?? "",
-                    sheetTitle: "Hint"
+                    sheetTitle: "Help"
                 )
             }
             .scrollContentBackground(.hidden).background(color)

+ 1 - 1
FreeAPS/Sources/Modules/AutosensSettings/View/AutosensSettingsRootView.swift

@@ -101,7 +101,7 @@ extension AutosensSettings {
                     shouldDisplayHint: $shouldDisplayHint,
                     hintLabel: hintLabel ?? "",
                     hintText: selectedVerboseHint ?? "",
-                    sheetTitle: "Hint"
+                    sheetTitle: "Help"
                 )
             }
             .scrollContentBackground(.hidden).background(color)

+ 1 - 1
FreeAPS/Sources/Modules/DynamicSettings/View/DynamicSettingsRootView.swift

@@ -203,7 +203,7 @@ extension DynamicSettings {
                     shouldDisplayHint: $shouldDisplayHint,
                     hintLabel: hintLabel ?? "",
                     hintText: selectedVerboseHint ?? "",
-                    sheetTitle: "Hint"
+                    sheetTitle: "Help"
                 )
             }
             .scrollContentBackground(.hidden).background(color)

+ 1 - 1
FreeAPS/Sources/Modules/GeneralSettings/View/GeneralSettingsRootView.swift

@@ -90,7 +90,7 @@ extension GeneralSettings {
                     shouldDisplayHint: $shouldDisplayHint,
                     hintLabel: hintLabel ?? "",
                     hintText: selectedVerboseHint ?? "",
-                    sheetTitle: "Hint"
+                    sheetTitle: "Help"
                 )
             }
             .scrollContentBackground(.hidden).background(color)

+ 1 - 1
FreeAPS/Sources/Modules/SMBSettings/View/SMBSettingsRootView.swift

@@ -292,7 +292,7 @@ extension SMBSettings {
                     shouldDisplayHint: $shouldDisplayHint,
                     hintLabel: hintLabel ?? "",
                     hintText: selectedVerboseHint ?? "",
-                    sheetTitle: "Hint"
+                    sheetTitle: "Help"
                 )
             }
             .scrollContentBackground(.hidden).background(color)

+ 1 - 1
FreeAPS/Sources/Modules/TargetBehavoir/View/TargetBehavoirRootView.swift

@@ -153,7 +153,7 @@ extension TargetBehavoir {
                     shouldDisplayHint: $shouldDisplayHint,
                     hintLabel: hintLabel ?? "",
                     hintText: selectedVerboseHint ?? "",
-                    sheetTitle: "Hint"
+                    sheetTitle: "Help"
                 )
             }
             .scrollContentBackground(.hidden).background(color)

+ 4 - 3
FreeAPS/Sources/Views/DefinitionRow.swift

@@ -5,6 +5,7 @@ struct DefinitionRow: View {
     var term: String
     var definition: String
     var color: Color?
+    var fontSize: Font?
 
     var body: some View {
         VStack(alignment: .leading) {
@@ -12,10 +13,10 @@ struct DefinitionRow: View {
                 if let color = color {
                     Image(systemName: "circle.fill").foregroundStyle(color)
                 }
-                Text(term).font(.subheadline).fontWeight(.semibold)
-            }
+                Text(term).font(fontSize ?? .subheadline).fontWeight(.semibold)
+            }.padding(.bottom, 5)
             Text(definition)
-                .font(.subheadline)
+                .font(fontSize ?? .subheadline)
                 .foregroundColor(.secondary)
         }
         .padding(.vertical, 5)

+ 2 - 3
FreeAPS/Sources/Views/SettingInputHintView.swift

@@ -6,16 +6,15 @@ struct SettingInputHintView: View {
     var hintLabel: String
     var hintText: String
     var sheetTitle: String
-
     var body: some View {
         NavigationStack {
             List {
                 DefinitionRow(
                     term: hintLabel,
-                    definition: hintText
+                    definition: hintText,
+                    fontSize: .body
                 )
             }
-            .padding(.trailing, 10)
             .navigationBarTitle(sheetTitle, displayMode: .inline)
 
             Spacer()

+ 2 - 1
Trio.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -1,4 +1,5 @@
 {
+  "originHash" : "f5c836c216c4ca7d356e3777e58d6d4f9502b03f3974891349eb775f4c4cf750",
   "pins" : [
     {
       "identity" : "cryptoswift",
@@ -91,5 +92,5 @@
       }
     }
   ],
-  "version" : 2
+  "version" : 3
 }