Explorar o código

Keep previous search terms and add scrollTargetLabels mappings

Restore removed search entries ("X-Axis Interval Step", "Dark Scheme",
"Light Scheme", "Enable Reduced Bolus Factor", etc.) so they still
navigate to the correct screen. Add scrollTargetLabels so the old
names also scroll to and highlight the correct row.
Gordon Child hai 1 mes
pai
achega
d6920ef137
Modificáronse 1 ficheiros con 18 adicións e 2 borrados
  1. 18 2
      Trio/Sources/Modules/Settings/SettingItems.swift

+ 18 - 2
Trio/Sources/Modules/Settings/SettingItems.swift

@@ -212,10 +212,20 @@ enum SettingItems {
                 "Recommended Bolus Percentage",
                 "Recommended Bolus Percentage",
                 "Enable Reduced Bolus Option",
                 "Enable Reduced Bolus Option",
                 "Reduced Bolus Percentage",
                 "Reduced Bolus Percentage",
+                "Enable Reduced Bolus Factor",
+                "Reduced Bolus Factor",
                 "Enable Super Bolus Option",
                 "Enable Super Bolus Option",
                 "Super Bolus Percentage",
                 "Super Bolus Percentage",
+                "Enable Super Bolus",
+                "Super Bolus Factor",
                 "Very Low Glucose Warning"
                 "Very Low Glucose Warning"
             ],
             ],
+            scrollTargetLabels: [
+                "Enable Reduced Bolus Factor": "Enable Reduced Bolus Option",
+                "Reduced Bolus Factor": "Reduced Bolus Percentage",
+                "Enable Super Bolus": "Enable Super Bolus Option",
+                "Super Bolus Factor": "Super Bolus Percentage"
+            ],
             path: ["Features", "Bolus Calculator"]
             path: ["Features", "Bolus Calculator"]
         ),
         ),
         SettingItem(
         SettingItem(
@@ -265,10 +275,13 @@ enum SettingItems {
                 "Appearance",
                 "Appearance",
                 "Dark Mode",
                 "Dark Mode",
                 "Light Mode",
                 "Light Mode",
+                "Dark Scheme",
+                "Light Scheme",
                 "Glucose Color Scheme",
                 "Glucose Color Scheme",
                 "Time in Range Type",
                 "Time in Range Type",
                 "Time in Tight Range (TITR)",
                 "Time in Tight Range (TITR)",
-                "Time in Normoglycemia (TING)"
+                "Time in Normoglycemia (TING)",
+                "X-Axis Interval Step"
             ],
             ],
             scrollTargetLabels: [
             scrollTargetLabels: [
                 "Show Y-Axis Grid Lines": "Show X-Axis Grid Lines",
                 "Show Y-Axis Grid Lines": "Show X-Axis Grid Lines",
@@ -278,7 +291,10 @@ enum SettingItems {
                 "Dark Mode": "Appearance",
                 "Dark Mode": "Appearance",
                 "Light Mode": "Appearance",
                 "Light Mode": "Appearance",
                 "Time in Tight Range (TITR)": "Time in Range Type",
                 "Time in Tight Range (TITR)": "Time in Range Type",
-                "Time in Normoglycemia (TING)": "Time in Range Type"
+                "Time in Normoglycemia (TING)": "Time in Range Type",
+                "Dark Scheme": "Appearance",
+                "Light Scheme": "Appearance",
+                "X-Axis Interval Step": "Show X-Axis Grid Lines"
             ],
             ],
             path: ["Features", "User Interface"]
             path: ["Features", "User Interface"]
         ),
         ),