Don't show pure-black dark mode preference on Mac

This commit is contained in:
Shadowfacts 2023-02-06 18:45:34 -05:00
parent 04ca932a01
commit 65ea72c07f
1 changed files with 5 additions and 2 deletions

View File

@ -61,9 +61,12 @@ struct AppearancePrefsView : View {
Text("Dark").tag(UIUserInterfaceStyle.dark) Text("Dark").tag(UIUserInterfaceStyle.dark)
} }
// macOS system dark mode isn't pure black, so this isn't necessary
if !ProcessInfo.processInfo.isMacCatalystApp && !ProcessInfo.processInfo.isiOSAppOnMac {
Toggle(isOn: $preferences.pureBlackDarkMode) { Toggle(isOn: $preferences.pureBlackDarkMode) {
Text("Pure Black Dark Mode") Text("Pure Black Dark Mode")
} }
}
Picker(selection: $preferences.accentColor, label: Text("Accent Color")) { Picker(selection: $preferences.accentColor, label: Text("Accent Color")) {
ForEach(accentColorsAndImages, id: \.0.rawValue) { (color, image) in ForEach(accentColorsAndImages, id: \.0.rawValue) { (color, image) in