mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-20 18:23:51 +00:00
Compare commits
2 Commits
yannikblos
...
patepelo-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
757857a264 | ||
|
|
3f9dfd6605 |
@@ -170,3 +170,7 @@ app.comaps
|
||||
|
||||
Licensed under the Apache License 2.0.
|
||||
See [LICENSE](LICENSE), [NOTICE](NOTICE), and [data/copyright.html](data/copyright.html).
|
||||
|
||||
## ✅ 100% FOSS
|
||||
|
||||
Our project is completly free and open source software; "[is it really FOSS?](https://isitreallyfoss.com/projects/comaps/)" has classified CoMaps as a truly Free Open Source Project
|
||||
|
||||
@@ -77,6 +77,8 @@ TagMapping const kVehicleTagMapping = {
|
||||
{OsmElement::Tag("vehicle", "private"), RoadAccess::Type::Private},
|
||||
{OsmElement::Tag("vehicle", "destination"), RoadAccess::Type::Destination},
|
||||
{OsmElement::Tag("vehicle", "permit"), RoadAccess::Type::Permit},
|
||||
{OsmElement::Tag("service", "parking_aisle"), RoadAccess::Type::Private},
|
||||
{OsmElement::Tag("amenity", "parking_entrance"), RoadAccess::Type::Private},
|
||||
};
|
||||
|
||||
TagMapping const kCarBarriersTagMapping = {
|
||||
|
||||
@@ -41,14 +41,13 @@ final class ThemeManager: NSObject {
|
||||
}
|
||||
}(actualTheme)
|
||||
|
||||
let isCarPlayActive = CarPlayService.shared.isCarplayActivated
|
||||
if !isCarPlayActive, Settings.mapAppearance == .light {
|
||||
if Settings.mapAppearance == .light {
|
||||
if actualTheme == .vehicleDay || actualTheme == .vehicleNight {
|
||||
FrameworkHelper.setTheme(.vehicleDay)
|
||||
} else {
|
||||
FrameworkHelper.setTheme(.day)
|
||||
}
|
||||
} else if !isCarPlayActive, Settings.mapAppearance == .dark {
|
||||
} else if Settings.mapAppearance == .dark {
|
||||
if actualTheme == .vehicleDay || actualTheme == .vehicleNight {
|
||||
FrameworkHelper.setTheme(.vehicleNight)
|
||||
} else {
|
||||
|
||||
@@ -186,7 +186,7 @@ import AVFoundation
|
||||
return mapAppearance
|
||||
}
|
||||
|
||||
return .light
|
||||
return .auto
|
||||
}
|
||||
set {
|
||||
UserDefaults.standard.set(newValue.rawValue, forKey: userDefaultsKeyMapAppearance)
|
||||
|
||||
Reference in New Issue
Block a user