Ver código fonte

Added a header text to the first section and modified some texts

Jonas Björkert 1 ano atrás
pai
commit
d6eba27e55

+ 19 - 17
FreeAPS/Sources/Modules/RemoteControlConfig/View/RemoteControlConfig.swift

@@ -37,23 +37,25 @@ extension RemoteControlConfig {
 
         var body: some View {
             Form {
-                SettingInputSection(
-                    decimalValue: $decimalPlaceholder,
-                    booleanValue: $state.isTRCEnabled,
-                    shouldDisplayHint: $shouldDisplayHint,
-                    selectedVerboseHint: Binding(
-                        get: { selectedVerboseHint },
-                        set: {
-                            selectedVerboseHint = $0
-                            hintLabel = "Enable Remote Command"
-                        }
-                    ),
-                    units: state.units,
-                    type: .boolean,
-                    label: "Enable Remote Command",
-                    miniHint: "Remote commands allow Trio to receive instructions, such as boluses and temp targets, from LoopFollow.",
-                    verboseHint: "When Remote Commands are enabled, you can send boluses, temporary targets, carbs, and other commands to Trio via push notifications. To ensure security, these commands are protected by a shared secret, which must be entered in LoopFollow."
-                )
+                Section(header: Text("Trio Remote Control")) {
+                    SettingInputSection(
+                        decimalValue: $decimalPlaceholder,
+                        booleanValue: $state.isTRCEnabled,
+                        shouldDisplayHint: $shouldDisplayHint,
+                        selectedVerboseHint: Binding(
+                            get: { selectedVerboseHint },
+                            set: {
+                                selectedVerboseHint = $0
+                                hintLabel = "Enable Remote Command"
+                            }
+                        ),
+                        units: state.units,
+                        type: .boolean,
+                        label: "Enable Remote Control",
+                        miniHint: "Remote Control allow Trio to receive instructions, such as boluses and temp targets, from LoopFollow.",
+                        verboseHint: "When Remote Control is enabled, you can send boluses, overrides, temporary targets, carbs, and other commands to Trio via push notifications. To ensure security, these commands are protected by a shared secret, which must be entered in LoopFollow."
+                    )
+                }
 
                 Section(
                     header: Text("Shared Secret"),