Compare commits

..

1 Commits

Author SHA1 Message Date
Yannik Bloscheck
a56bf5eeca [styles] Improve direction arrows
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
2026-01-22 15:31:38 +01:00
62 changed files with 189 additions and 26 deletions

View File

@@ -268,7 +268,6 @@ android {
"da",
"de",
"el",
"en-rAU",
"en-rGB",
"es",
"es-rMX",

View File

@@ -13,7 +13,6 @@
<locale android:name="da" />
<locale android:name="de" />
<locale android:name="el" />
<locale android:name="en-AU" />
<locale android:name="en-GB" />
<locale android:name="es" />
<locale android:name="es-MX" />

View File

@@ -1,3 +1 @@
<svg version="1.1" viewBox="0 0 21 8" width="16" height="6" xmlns="http://www.w3.org/2000/svg">
<path transform="matrix(-1 0 0 1 21 0)" d="m8.4108 3h12.589v2h-12.611l0.61119 3-9-4 9-4-0.58921 3z" fill="#FFF" fill-rule="evenodd" opacity=".6"/>
</svg>
<svg height="7" viewBox="0 0 17 7" width="17" xmlns="http://www.w3.org/2000/svg"><path d="m6.40838857 2.28571429h9.59161903v1.52380952h-9.60838093l.46566857 2.28571429-6.85714286-3.04761905 6.85714286-3.04761905-.44892191 2.28571429z" fill="#fff" fill-opacity=".6" fill-rule="evenodd" transform="matrix(-1 0 0 1 16.908 .6667)"/></svg>

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 334 B

View File

@@ -1,3 +1 @@
<svg version="1.1" viewBox="0 0 15 5" width="11" height="4" xmlns="http://www.w3.org/2000/svg">
<path transform="matrix(-1 0 0 1 15 0)" d="m6.1036 2h8.8964v1h-8.9041l0.2134 2-6.3093-2.5 6.3093-2.5-0.20572 2z" fill="#FFF" fill-rule="evenodd" opacity=".6"/>
</svg>
<svg height="5" viewBox="0 0 12 5" width="12" xmlns="http://www.w3.org/2000/svg"><path d="m4.47597333 1.46666667h6.52402667v.73333333h-6.52967333l.15649333 1.46666667-4.62682-1.83333334 4.62682-1.83333333-.15086133 1.46666667z" fill="#fff" fill-opacity=".6" fill-rule="evenodd" transform="matrix(-1 0 0 1 11.9078 .6667)"/></svg>

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 328 B

View File

@@ -1,3 +1 @@
<svg version="1.1" viewBox="0 0 9 3" width="7" height="2" xmlns="http://www.w3.org/2000/svg">
<path transform="matrix(-1 0 0 1 9 0)" d="m2.5 1h6.5v1h-6.5v-1zm-2.5 0.5 2.5-1.5v3l-2.5-1.5z" fill="#FFF" fill-rule="evenodd" opacity=".6"/>
</svg>
<svg height="3" viewBox="0 0 8 3" width="8" xmlns="http://www.w3.org/2000/svg"><path d="m1.94444444.77777778h5.05555556v.77777778h-5.05555556zm-1.94444444.38888889 1.94444444-1.16666667v2.33333333z" fill="#fff" fill-opacity=".6" fill-rule="evenodd" transform="matrix(-1 0 0 1 7.9078 .6667)"/></svg>

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 298 B

View File

@@ -1293,7 +1293,7 @@ node|z17-[leisure=fitness_station]
node|z16-[leisure=sports_centre],
{icon-image: sports_centre-m.svg;icon-min-distance: 9;}
node|z17-[leisure=sports_hall]
{icon-image: pitch-m.svg;icon-min-distance: 10;}
{icon-image: sports_centre-m.svg;icon-min-distance: 10;}
node|z16-[leisure=dance]
{icon-image: dance-m.svg;icon-min-distance: 10;}
node|z16-[leisure=fitness_centre]

View File

@@ -1,3 +1 @@
<svg version="1.1" viewBox="0 0 21 8" width="16" height="6" xmlns="http://www.w3.org/2000/svg">
<path transform="matrix(-1 0 0 1 21 0)" d="m8.4108 3h12.589v2h-12.611l0.61119 3-9-4 9-4-0.58921 3z" fill="#747E86" fill-rule="evenodd"/>
</svg>
<svg height="7" viewBox="0 0 16 7" width="16" xmlns="http://www.w3.org/2000/svg"><path d="m6.40838857 2.28571429h9.59161903v1.52380952h-9.60838093l.46566857 2.28571429-6.85714286-3.04761905 6.85714286-3.04761905-.44892191 2.28571429z" fill="#46361e" fill-opacity=".4" fill-rule="evenodd" transform="matrix(-1 0 0 1 16.0002 0)"/></svg>

Before

Width:  |  Height:  |  Size: 241 B

After

Width:  |  Height:  |  Size: 334 B

View File

@@ -1,3 +1 @@
<svg version="1.1" viewBox="0 0 15 5" width="11" height="4" xmlns="http://www.w3.org/2000/svg">
<path transform="matrix(-1 0 0 1 15 0)" d="m6.1036 2h8.8964v1h-8.9041l0.2134 2-6.3093-2.5 6.3093-2.5-0.20572 2z" fill="#747E86" fill-rule="evenodd"/>
</svg>
<svg height="4" viewBox="0 0 11 4" width="11" xmlns="http://www.w3.org/2000/svg"><path d="m4.47597333 1.46666667h6.52402667v.73333333h-6.52967333l.15649333 1.46666667-4.62682-1.83333334 4.62682-1.83333333-.15086133 1.46666667z" fill="#46361e" fill-opacity=".4" fill-rule="evenodd" transform="matrix(-1 0 0 1 11 0)"/></svg>

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 322 B

View File

@@ -1,3 +1 @@
<svg version="1.1" viewBox="0 0 9 3" width="7" height="2" xmlns="http://www.w3.org/2000/svg">
<path transform="matrix(-1 0 0 1 9 0)" d="m2.5 1h6.5v1h-6.5v-1zm-2.5 0.5 2.5-1.5v3l-2.5-1.5z" fill="#747E86" fill-rule="evenodd"/>
</svg>
<svg height="3" viewBox="0 0 7 3" width="7" xmlns="http://www.w3.org/2000/svg"><path d="m1.94444444.77777778h5.05555556v.77777778h-5.05555556zm-1.94444444.38888889 1.94444444-1.16666667v2.33333333z" fill="#46361e" fill-opacity=".4" fill-rule="evenodd" transform="matrix(-1 0 0 1 7 0)"/></svg>

Before

Width:  |  Height:  |  Size: 233 B

After

Width:  |  Height:  |  Size: 292 B

View File

@@ -19,6 +19,9 @@ NS_SWIFT_NAME(SettingsBridge)
+ (BOOL)zoomButtonsEnabled;
+ (void)setZoomButtonsEnabled:(BOOL)zoomButtonsEnabled;
+ (BOOL)compassCalibrationEnabled;
+ (void)setCompassCalibrationEnabled:(BOOL)compassCalibrationEnabled;
+ (MWMTheme)theme;
+ (void)setTheme:(MWMTheme)theme;

View File

@@ -12,6 +12,7 @@ namespace
{
char const * kAutoDownloadEnabledKey = "AutoDownloadEnabled";
char const * kZoomButtonsEnabledKey = "ZoomButtonsEnabled";
char const * kCompassCalibrationEnabledKey = "CompassCalibrationEnabled";
char const * kMapLanguageCode = "MapLanguageCode";
char const * kRoutingDisclaimerApprovedKey = "IsDisclaimerApproved";
@@ -115,6 +116,18 @@ NSString * const kUDFileLoggingEnabledKey = @"FileLoggingEnabledKey";
[MWMMapViewControlsManager manager].zoomHidden = !zoomButtonsEnabled;
}
+ (BOOL)compassCalibrationEnabled
{
bool enabled = true;
UNUSED_VALUE(settings::Get(kCompassCalibrationEnabledKey, enabled));
return enabled;
}
+ (void)setCompassCalibrationEnabled:(BOOL)compassCalibrationEnabled
{
settings::Set(kCompassCalibrationEnabledKey, static_cast<bool>(compassCalibrationEnabled));
}
+ (MWMTheme)theme
{
if ([MWMCarPlayService shared].isCarplayActivated) {

View File

@@ -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 {

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "E-posstuurfout";
/* Settings item title */
"pref_calibration_title" = "Kompaskalibrering";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Langtik weer op die kaart om die koppelvlak te sien";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "حدث خطأ في إرسال البريد الإلكتروني";
/* Settings item title */
"pref_calibration_title" = "معايرة البوصلة";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "اضغط مطولاً على الخريطة مرة أخرى لرؤية الواجهة";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "E-poçt göndərmə xətası";
/* Settings item title */
"pref_calibration_title" = "Kompas kalibrlənməsi";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "İnterfeysi görmək üçün yenidən xəritəyə uzun müddət toxunun";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Памылка пры адпраўцы пошты";
/* Settings item title */
"pref_calibration_title" = "Каліброўка компаса";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Паўторнае працяглае націсканне верне бачнасць інтэрфейсу";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Грешка при изпращане на поща";
/* Settings item title */
"pref_calibration_title" = "Калибриране на компас";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Докоснете отново картата, за да видите интерфейса";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "S'ha produït un error en enviar el correu";
/* Settings item title */
"pref_calibration_title" = "Calibratge de la brúixola";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Toqueu llargament el mapa de nou per veure la interfície";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Chyba při odesílání emailu";
/* Settings item title */
"pref_calibration_title" = "Kalibrace kompasu";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Dlouhým klepnutím na mapu znovu zobrazíte rozhraní";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Mailforsendelsesfejl";
/* Settings item title */
"pref_calibration_title" = "Kalibrering af kompas";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Tryk længe på kortet igen for at se grænsefladen";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Fehler beim E-Mail-Versand";
/* Settings item title */
"pref_calibration_title" = "Kompass-Kalibrierung";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Tippe erneut lange auf die Karte, um die Benutzeroberfläche wiederzusehen";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Σφάλμα κατά την αποστολή του e-mail";
/* Settings item title */
"pref_calibration_title" = "Καλιμπράρισμα πυξίδας";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Πατήστε ξανά παρατεταμένα στο χάρτη για να δείτε το περιβάλλον εργασίας";

View File

@@ -352,6 +352,9 @@
/* Alert title */
"email_error_title" = "Error sending email";
/* Settings item title */
"pref_calibration_title" = "Compass calibration";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Long-tap on the map again to see the interface";

View File

@@ -1402,7 +1402,6 @@
"type.shop.watches" = "Watch Shop";
"type.shop.wholesale" = "Wholesale Shop";
"type.sport" = "Sport";
"type.sport.multi" = "Various Sports";
"type.sport.9pin" = "Bowling";
"type.sport.10pin" = "Bowling";
"type.sport.american_football" = "American Football";

View File

@@ -363,6 +363,9 @@
/* Alert title */
"email_error_title" = "Error sending email";
/* Settings item title */
"pref_calibration_title" = "Compass calibration";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Long-tap on the map again to see the interface";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Error de envío de correo";
/* Settings item title */
"pref_calibration_title" = "Calibración de la brújula";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Vuelve a pulsar prolongadamente sobre el mapa para ver la interfaz";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Error de envío de correo";
/* Settings item title */
"pref_calibration_title" = "Calibración de la brújula";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Vuelva a pulsar prolongadamente sobre el mapa para ver la interfaz";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Viga teate saatmisel";
/* Settings item title */
"pref_calibration_title" = "Kompassi kalibreerimine";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Kasutajaliidese nägemiseks vajuta kaarti pikalt";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Errore bat mezua bidaltzean";
/* Settings item title */
"pref_calibration_title" = "Iparrorratzaren kalibrazioa";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Sakatu luze berriro mapan interfazea ikusteko";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "خطا در ارسال ایمیل";
/* Settings item title */
"pref_calibration_title" = "تنظیم کردن قطب نما";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "دوباره روی نقشه ضربه طولانی بزنید تا رابط کاربری را ببینید";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Virhe lähetettäessä viestiä";
/* Settings item title */
"pref_calibration_title" = "Kompassin kalibrointi";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Paina karttaa pitkään uudelleen nähdäksesi käyttöliittymän";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Erreur denvoi de courriel";
/* Settings item title */
"pref_calibration_title" = "Étalonnage de la boussole";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Appuyez à nouveau longuement sur la carte pour voir linterface";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "שגיאה בשליחת דוא\"ל";
/* Settings item title */
"pref_calibration_title" = "כיול המצפן";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "לחץ לחיצה ארוכה במפה כדי להציג את הממשק";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "ईमेल भेजने में त्रुटि";
/* Settings item title */
"pref_calibration_title" = "कम्पास अंशांकन";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "इंटरफ़ेस देखने के लिए मानचित्र पर फिर से देर तक टैप करें";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Hiba az e-mail küldése során";
/* Settings item title */
"pref_calibration_title" = "Iránytű kalibrálása";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Érintse meg újra hosszan a térképet a kezelőfelület megjelenítéséhez";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Gangguan pengiriman surel";
/* Settings item title */
"pref_calibration_title" = "Kalibrasi kompas";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Ketuk lama pada peta sekali lagi untuk melihat antarmuka";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Errore invio e-mail";
/* Settings item title */
"pref_calibration_title" = "Calibrazione bussola";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Tocca di nuovo a lungo sulla mappa per visualizzare l'interfaccia";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "メール送信エラー";
/* Settings item title */
"pref_calibration_title" = "コンパスの調整";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "インターフェイスを見るには、もう一度地図をロングタップする";

View File

@@ -329,6 +329,9 @@
/* Alert title */
"email_error_title" = "메일 전송 중 오류";
/* Settings item title */
"pref_calibration_title" = "나침반 보정";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "지도를 다시 길게 탭하면 인터페이스가 표시됩니다.";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Klaida siunčiant laišką";
/* Settings item title */
"pref_calibration_title" = "Kompaso kalibravimas";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Bakstelėkite ir palaikykite žemėlapį vėl, kad pamatytumėte sąsają";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Kļūda, nosūtot vēstuli";
/* Settings item title */
"pref_calibration_title" = "Kompasa kalibrēšana";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Vēlreiz piespiediet un paturiet uz kartes, lai redzētu saskarni";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "मेल पाठवताना त्रुटी";
/* Settings item title */
"pref_calibration_title" = "होकायंत्र अंशशोधन";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "इंटरफेस पाहण्यासाठी पुन्हा नकाशावर दीर्घ टॅप करा";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Żball meta bgħatt e-mejl";
/* Settings item title */
"pref_calibration_title" = "Kalibrazzjoni tal-boxxla";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Itteppja fit-tul darb oħra fuq il-mappa biex tara l-interface";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Feil ved sending av e-post";
/* Settings item title */
"pref_calibration_title" = "Kompasskalibrering";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Trykk lenge på kartet igjen for å se grensesnittet";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "E-mail verzendfout";
/* Settings item title */
"pref_calibration_title" = "Kompaskalibratie";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Tik nogmaals lang op de kaart om de interface te zien";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Błąd wysyłania wiadomości";
/* Settings item title */
"pref_calibration_title" = "Kalibracja kompasu";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Ponownie dotknij długo mapy, aby wyświetlić interfejs";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Erro no envio de email";
/* Settings item title */
"pref_calibration_title" = "Calibração da bússola";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Dê um toque longo no mapa novamente para ver a interface";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Erro ao enviar o email";
/* Settings item title */
"pref_calibration_title" = "Calibração da bússola";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Dê um toque longo no mapa novamente para ver a interface";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Eroare de trimitere e-mail";
/* Settings item title */
"pref_calibration_title" = "Calibrare busolă";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Atingeți lung pe hartă din nou pentru a vedea interfața";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "Ошибка при отправлении письма";
/* Settings item title */
"pref_calibration_title" = "Калибровка компаса";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Долгое нажатие на карту вернет интерфейс обратно";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Chyba pri odosielaní emailu";
/* Settings item title */
"pref_calibration_title" = "Kalibrácia kompasu";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Opätovným dlhým ťuknutím na mapu zobrazíte rozhranie";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Грешка приликом слања email-а";
/* Settings item title */
"pref_calibration_title" = "Калибрација компаса";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Додирните дуго мапу да бисте поново видели интерфејс";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Fel när mailet skulle skickas";
/* Settings item title */
"pref_calibration_title" = "Kompasskalibrering";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Tryck länge på kartan för att se gränssnittet";

View File

@@ -320,6 +320,9 @@
/* Alert title */
"email_error_title" = "Error sending email";
/* Settings item title */
"pref_calibration_title" = "Compass calibration";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Gusa kwa muda mrefu kwenye ramani tena ili kuona kiolesura";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "จดหมายที่ส่งเกิดความผิดพลาด";
/* Settings item title */
"pref_calibration_title" = "การปรับเทียบเข็มทิศ";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "แตะยาวบนแผนที่อีกครั้งเพื่อดูอินเทอร์เฟซ";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "E-Posta gönderme hatası";
/* Settings item title */
"pref_calibration_title" = "Pusula kalibrasyonu";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Seçenekleri görmek için haritaya tekrar basılı tutun";

View File

@@ -333,6 +333,9 @@
/* Alert title */
"email_error_title" = "Помилка при відправленні листа";
/* Settings item title */
"pref_calibration_title" = "Калібрування компаса";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Ще раз потримайте палець на карті, щоб побачити інтерфейс";

View File

@@ -330,6 +330,9 @@
/* Alert title */
"email_error_title" = "Lỗi gửi thư";
/* Settings item title */
"pref_calibration_title" = "Chuẩn hóa la bàn";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "Nhấn và giữ lại vào bản đồ để xem giao diện";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "电子邮件发送失败";
/* Settings item title */
"pref_calibration_title" = "指南针校准";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "再次长按地图即可查看界面";

View File

@@ -336,6 +336,9 @@
/* Alert title */
"email_error_title" = "電子郵件發送失敗";
/* Settings item title */
"pref_calibration_title" = "校正指南針";
/* Toast text when user hides UI with a long tap anywhere on the map */
"long_tap_toast" = "再次長按地圖即可查看介面";

View File

@@ -178,6 +178,17 @@ import AVFoundation
}
/// If the compass should be calibrated
@objc static var shouldCalibrateCompass: Bool {
get {
return SettingsBridge.compassCalibrationEnabled()
}
set {
SettingsBridge.setCompassCalibrationEnabled(newValue)
}
}
/// The current map appearance
@objc static var mapAppearance: Appearance {
get {
@@ -186,7 +197,7 @@ import AVFoundation
return mapAppearance
}
return .light
return .auto
}
set {
UserDefaults.standard.set(newValue.rawValue, forKey: userDefaultsKeyMapAppearance)

View File

@@ -64,6 +64,10 @@ struct SettingsView: View {
@State private var isSyncPossible: Bool = true
/// If the compass should be calibrated
@State private var shouldCalibrateCompass: Bool = true
/// The selected power saving mode
@State private var selectedPowerSavingMode: Settings.PowerSavingMode = .never
@@ -252,6 +256,9 @@ struct SettingsView: View {
Text("pref_appearance_title")
}
Toggle("pref_calibration_title", isOn: $shouldCalibrateCompass)
.tint(.accent)
Picker(selection: $selectedPowerSavingMode) {
ForEach(Settings.PowerSavingMode.allCases) { powerSavingMode in
Text(powerSavingMode.description)
@@ -312,6 +319,7 @@ struct SettingsView: View {
selectedMapAppearance = Settings.mapAppearance
selectedAppearance = Settings.appearance
shouldSync = Settings.shouldSync
shouldCalibrateCompass = Settings.shouldCalibrateCompass
selectedPowerSavingMode = Settings.powerSavingMode
selectedMobileDataPolicy = Settings.mobileDataPolicy
isLogging = Settings.isLogging
@@ -359,6 +367,9 @@ struct SettingsView: View {
Settings.shouldSync = changedShouldSync
}
}
.onChange(of: shouldCalibrateCompass) { changedShouldCalibrateCompass in
Settings.shouldCalibrateCompass = changedShouldCalibrateCompass
}
.onChange(of: selectedPowerSavingMode) { changedSelectedPowerSavingMode in
Settings.powerSavingMode = changedSelectedPowerSavingMode
}