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,8 +61,11 @@ struct AppearancePrefsView : View {
Text("Dark").tag(UIUserInterfaceStyle.dark)
}
Toggle(isOn: $preferences.pureBlackDarkMode) {
Text("Pure Black Dark Mode")
// macOS system dark mode isn't pure black, so this isn't necessary
if !ProcessInfo.processInfo.isMacCatalystApp && !ProcessInfo.processInfo.isiOSAppOnMac {
Toggle(isOn: $preferences.pureBlackDarkMode) {
Text("Pure Black Dark Mode")
}
}
Picker(selection: $preferences.accentColor, label: Text("Accent Color")) {