forked from shadowfacts/Tusker
Don't show pure-black dark mode preference on Mac
This commit is contained in:
parent
04ca932a01
commit
65ea72c07f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue