Jon B.M 4 лет назад
Родитель
Сommit
0cf4c06714

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
FreeAPS/Resources/javascript/bundle/determine-basal.js


+ 4 - 4
FreeAPS/Sources/Modules/PreferencesEditor/PreferencesEditorStateModel.swift

@@ -480,8 +480,8 @@ extension PreferencesEditor {
                     displayName: "ISF weight while BG accelerates",
                     type: .decimal(keypath: \.bgAccelISFweight),
                     infoText: NSLocalizedString(
-                        "Default value: 0. This is the weight applied while glucose accelerates and which strengthens ISF. With 0 this contribution is effectively disabled.",
-                        comment: "ISF postprandial change duration"
+                        "Default value: 0. This is the weight applied while glucose accelerates and which strengthens ISF. With 0 this contribution is effectively disabled. 0.15 might be a good starting point.",
+                        comment: "ISF acceleration weight"
                     ),
                     settable: self
                 ),
@@ -489,8 +489,8 @@ extension PreferencesEditor {
                     displayName: "ISF weight while BG decelerates",
                     type: .decimal(keypath: \.bgBrakeISFweight),
                     infoText: NSLocalizedString(
-                        "Default value: 0. This is the weight applied while glucose decelerates and which weakens ISF. With 0 this contribution is effectively disabled.",
-                        comment: "ISF postprandial change duration"
+                        "Default value: 0. This is the weight applied while glucose decelerates and which weakens ISF. With 0 this contribution is effectively disabled. 0.15 might be a good starting point.",
+                        comment: "ISF decceleration weight"
                     ),
                     settable: self
                 ),

+ 20 - 3
FreeAPS/Sources/Views/TagCloudView.swift

@@ -50,9 +50,26 @@ struct TagCloudView: View {
         }.background(viewHeightReader($totalHeight))
     }
 
-    private func item(for text: String) -> some View {
-        Text(text)
-            .padding(.all, 5)
+    private func item(for textTag: String) -> some View {
+        var colorOfTag: Color {
+            switch textTag {
+            case "autoISF":
+                return .zt
+            case "SMB Delivery Ratio:":
+                return .loopOrange
+            case "Parabolic Fit":
+                return .loopRed
+            case "Autosense":
+                return .loopGreen
+            case "Standard":
+                return .insulin
+            default:
+                return .basal
+            }
+        }
+        return ZStack { Text(textTag)
+            .padding(.vertical, 2)
+            .padding(.horizontal, 4)
             .font(.body)
             .background(Color.insulin)
             .foregroundColor(Color.white)