Преглед изворни кода

Rename Trio Color Scheme to Appearance, add Dark, Light to search

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

+ 5 - 1
FreeAPS/Sources/Modules/Settings/SettingItems.swift

@@ -214,7 +214,11 @@ enum SettingItems {
                 "Forecast Display Type",
                 "Forecast Display Type",
                 "Cone",
                 "Cone",
                 "Lines",
                 "Lines",
-                "Trio Color Scheme",
+                "Dark Mode",
+                "Light Mode",
+                "Appearance",
+                "Dark Scheme",
+                "Light Scheme",
                 "Glucose Color Scheme"
                 "Glucose Color Scheme"
             ],
             ],
             path: ["Features", "User Interface"]
             path: ["Features", "User Interface"]

+ 3 - 3
FreeAPS/Sources/Modules/UserInterfaceSettings/View/UserInterfaceSettingsRootView.swift

@@ -47,7 +47,7 @@ extension UserInterfaceSettings {
                         VStack {
                         VStack {
                             Picker(
                             Picker(
                                 selection: $colorSchemePreference,
                                 selection: $colorSchemePreference,
-                                label: Text("Trio Color Scheme")
+                                label: Text("Appearance")
                             ) {
                             ) {
                                 ForEach(ColorSchemeOption.allCases) { selection in
                                 ForEach(ColorSchemeOption.allCases) { selection in
                                     Text(selection.displayName).tag(selection)
                                     Text(selection.displayName).tag(selection)
@@ -56,7 +56,7 @@ extension UserInterfaceSettings {
 
 
                             HStack(alignment: .center) {
                             HStack(alignment: .center) {
                                 Text(
                                 Text(
-                                    "Choose app color scheme. See hint for more details."
+                                    "Choose Trio's appearance. See hint for more details."
                                 )
                                 )
                                 .font(.footnote)
                                 .font(.footnote)
                                 .foregroundColor(.secondary)
                                 .foregroundColor(.secondary)
@@ -69,7 +69,7 @@ extension UserInterfaceSettings {
                                             AnyView(
                                             AnyView(
                                                 VStack(alignment: .leading, spacing: 10) {
                                                 VStack(alignment: .leading, spacing: 10) {
                                                     Text(
                                                     Text(
-                                                        "Set the app color scheme. Descriptions of each option found below."
+                                                        "Set the Trio's apperance. Descriptions of each option found below."
                                                     )
                                                     )
                                                     VStack(alignment: .leading, spacing: 5) {
                                                     VStack(alignment: .leading, spacing: 5) {
                                                         Text("System Default:").bold()
                                                         Text("System Default:").bold()