mapbox / mapbox/mapbox-navigation-android
Switch between light/dark UI colors and day/night map style depending on time of day
Nessuno ha ancora preso questa issue.
- Lingua principale
- Kotlin
- Stelle
- 651
- Fork
- 321
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The map view should automatically switch between the Mapbox Navigation Day and Mapbox Navigation Night map styles (or corresponding styles specified by the developer) based on the time of day and also when entering or exiting a tunnel. Foreground and background colors throughout the built-in UI components should also change to match the map style.
Rationale
The Navigation Day and Navigation Night styles were designed to be legible in different lighting conditions. We should not blind the user with a day style at night or force them to squint at a night style during the day. In addition to facilitating day/night switching, this feature enables developers to thoroughly customize the look and feel of disparate UI components without writing too much code.
The iOS navigation SDK calls this customization system “styles”, though we sometimes refer to it as “UI styles” or “themes” or “skins” to differentiate it from the more basic style switching functionality exposed by the map SDK. We should have an analogous system in place on Android, even if the specifics will differ according to platform conventions.
Design notes
The application should be able to configure the navigation SDK to call the appropriate map style switching code in the map SDK. It should not be up to the application to switch the map style directly. If possible, prefer a declarative approach to specifying the colors over an imperative approach.
/ref #1057 #3423
/cc @mapbox/navigation-android
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando le issue referenziate #1057 e #3423 e la guida agli stili iOS collegata per comprendere il modello di personalizzazione previsto. L’implementazione dovrebbe includere stili della mappa giorno/notte configurabili dagli sviluppatori e colori dell’UI coordinati che reagiscano all’ora del giorno e all’ingresso o all’uscita da un tunnel.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- kotlin
- Ambito
- design, mobile-dev
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100