Ver código fonte

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 1 mês atrás
pai
commit
d6920ef137
1 arquivos alterados com 18 adições e 2 exclusões
  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",
                 "Enable Reduced Bolus Option",
                 "Reduced Bolus Percentage",
+                "Enable Reduced Bolus Factor",
+                "Reduced Bolus Factor",
                 "Enable Super Bolus Option",
                 "Super Bolus Percentage",
+                "Enable Super Bolus",
+                "Super Bolus Factor",
                 "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"]
         ),
         SettingItem(
@@ -265,10 +275,13 @@ enum SettingItems {
                 "Appearance",
                 "Dark Mode",
                 "Light Mode",
+                "Dark Scheme",
+                "Light Scheme",
                 "Glucose Color Scheme",
                 "Time in Range Type",
                 "Time in Tight Range (TITR)",
-                "Time in Normoglycemia (TING)"
+                "Time in Normoglycemia (TING)",
+                "X-Axis Interval Step"
             ],
             scrollTargetLabels: [
                 "Show Y-Axis Grid Lines": "Show X-Axis Grid Lines",
@@ -278,7 +291,10 @@ enum SettingItems {
                 "Dark Mode": "Appearance",
                 "Light Mode": "Appearance",
                 "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"]
         ),