From 765a33881087a73c6ac04031efe7c3f5171a3c42 Mon Sep 17 00:00:00 2001 From: Oleksandr Shyshatskyi Date: Sat, 24 Oct 2026 21:10:27 +0300 Subject: [PATCH] feat: dark map palette by default The map starts in the night palette; the day/night button still switches to day. Co-Authored-By: Claude Opus 5.5 --- backends/osmand/osmand_engine.cpp | 2 +- backends/osmand/ui/navigation_model.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/osmand/osmand_engine.cpp b/backends/osmand/osmand_engine.cpp index 972a626..db6c36f 100644 --- a/backends/osmand/osmand_engine.cpp +++ b/backends/osmand/osmand_engine.cpp @@ -233,7 +233,7 @@ class OsmAndEngine final : public Engine { std::chrono::steady_clock::now(); CameraController::Pose applied_pose_{}; bool pose_applied_ = false; - bool night_ = false; + bool night_ = true; // the dark map palette is the default bool overview_pending_ = false; bool route_shown_ = false; // the vector map draws a route std::size_t shown_route_index_ = 0; // which of the routes it draws diff --git a/backends/osmand/ui/navigation_model.h b/backends/osmand/ui/navigation_model.h index c93a757..48410db 100644 --- a/backends/osmand/ui/navigation_model.h +++ b/backends/osmand/ui/navigation_model.h @@ -145,7 +145,7 @@ struct MapViewState { bool following = true; bool heading_up = true; bool tilted = false; - bool night = false; + bool night = true; // A heading is known, so heading-up can turn the map; until then the // heading-up button is shown dimmed (the map stays as it is). bool heading_known = true;