Jonas Björkert 1 год назад
Родитель
Сommit
514338fa7b

+ 1 - 0
LoopFollow/Alarm/AlarmListView.swift

@@ -142,6 +142,7 @@ struct AlarmListView: View {
                 sheetContent(for: info)
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 
     private func handleSheetDismiss() {

+ 1 - 0
LoopFollow/Alarm/AlarmSettingsView.swift

@@ -196,5 +196,6 @@ struct AlarmSettingsView: View {
                 }
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 }

+ 1 - 0
LoopFollow/BackgroundRefresh/BackgroundRefreshSettingsView.swift

@@ -37,6 +37,7 @@ struct BackgroundRefreshSettingsView: View {
                 stopTimer()
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 
     // MARK: - Subviews / Computed Properties

+ 1 - 0
LoopFollow/Contact/Settings/ContactSettingsView.swift

@@ -89,6 +89,7 @@ struct ContactSettingsView: View {
                 Alert(title: Text(alertTitle), message: Text(alertMessage), dismissButton: .default(Text("OK")))
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 
     private func requestContactAccess() {

+ 1 - 0
LoopFollow/Dexcom/DexcomSettingsView.swift

@@ -36,5 +36,6 @@ struct DexcomSettingsView: View {
                 }
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 }

+ 1 - 0
LoopFollow/InfoDisplaySettings/InfoDisplaySettingsView.swift

@@ -47,5 +47,6 @@ struct InfoDisplaySettingsView: View {
                 NotificationCenter.default.post(name: NSNotification.Name("refresh"), object: nil)
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 }

+ 1 - 0
LoopFollow/Log/LogView.swift

@@ -46,5 +46,6 @@ struct LogView: View {
                 viewModel.loadLogEntries()
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 }

+ 1 - 0
LoopFollow/Nightscout/NightscoutSettingsView.swift

@@ -27,6 +27,7 @@ struct NightscoutSettingsView: View {
                 viewModel.dismiss()
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 
     // MARK: - Subviews / Computed Properties

+ 1 - 0
LoopFollow/Remote/Settings/RemoteSettingsView.swift

@@ -206,6 +206,7 @@ struct RemoteSettingsView: View {
                 }
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 
     // MARK: - Custom Row for Remote Type Selection

+ 1 - 0
LoopFollow/Settings/AdvancedSettingsView.swift

@@ -37,5 +37,6 @@ struct AdvancedSettingsView: View {
                 }
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 }

+ 1 - 0
LoopFollow/Settings/GeneralSettingsView.swift

@@ -112,5 +112,6 @@ struct GeneralSettingsView: View {
                 }
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 }

+ 1 - 0
LoopFollow/Settings/GraphSettingsView.swift

@@ -143,6 +143,7 @@ struct GraphSettingsView: View {
                 }
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 
     /// Marks the chart as needing a redraw

+ 1 - 0
LoopFollow/Settings/WatchSettingsView.swift

@@ -82,6 +82,7 @@ struct WatchSettingsView: View {
                 await requestCalendarAccessAndLoad()
             }
         }
+        .preferredColorScheme(Storage.shared.forceDarkMode.value ? .dark : nil)
     }
 
     // MARK: - Helpers