mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[ios] Don't let custom map appearance influence CarPlay
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
@@ -41,13 +41,14 @@ final class ThemeManager: NSObject {
|
|||||||
}
|
}
|
||||||
}(actualTheme)
|
}(actualTheme)
|
||||||
|
|
||||||
if Settings.mapAppearance == .light {
|
let isCarPlayActive = CarPlayService.shared.isCarplayActivated
|
||||||
|
if !isCarPlayActive, Settings.mapAppearance == .light {
|
||||||
if actualTheme == .vehicleDay || actualTheme == .vehicleNight {
|
if actualTheme == .vehicleDay || actualTheme == .vehicleNight {
|
||||||
FrameworkHelper.setTheme(.vehicleDay)
|
FrameworkHelper.setTheme(.vehicleDay)
|
||||||
} else {
|
} else {
|
||||||
FrameworkHelper.setTheme(.day)
|
FrameworkHelper.setTheme(.day)
|
||||||
}
|
}
|
||||||
} else if Settings.mapAppearance == .dark {
|
} else if !isCarPlayActive, Settings.mapAppearance == .dark {
|
||||||
if actualTheme == .vehicleDay || actualTheme == .vehicleNight {
|
if actualTheme == .vehicleDay || actualTheme == .vehicleNight {
|
||||||
FrameworkHelper.setTheme(.vehicleNight)
|
FrameworkHelper.setTheme(.vehicleNight)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user