mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[android-auto] Fix theme issues
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
committed by
Konstantin Pastbin
parent
bd97cb4ceb
commit
9fd80ecf88
@@ -73,8 +73,7 @@ public class NavigationScreen extends BaseMapScreen implements RoutingController
|
||||
public Template onGetTemplate()
|
||||
{
|
||||
final NavigationTemplate.Builder builder = new NavigationTemplate.Builder();
|
||||
builder.setBackgroundColor(ThemeUtils.isNightMode(getCarContext()) ? Colors.NAVIGATION_TEMPLATE_BACKGROUND_NIGHT
|
||||
: Colors.NAVIGATION_TEMPLATE_BACKGROUND_DAY);
|
||||
builder.setBackgroundColor(Colors.NAVIGATION_TEMPLATE_BACKGROUND);
|
||||
builder.setActionStrip(createActionStrip());
|
||||
builder.setMapActionStrip(UiHelpers.createMapActionStrip(getCarContext(), getSurfaceRenderer()));
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@ public final class Colors
|
||||
public static final CarColor OPENING_HOURS_CLOSES_SOON = CarColor.YELLOW;
|
||||
public static final CarColor OPENING_HOURS_CLOSED = CarColor.RED;
|
||||
public static final CarColor START_NAVIGATION = CarColor.GREEN;
|
||||
public static final CarColor NAVIGATION_TEMPLATE_BACKGROUND_DAY = CarColor.GREEN;
|
||||
public static final CarColor NAVIGATION_TEMPLATE_BACKGROUND_NIGHT = CarColor.DEFAULT;
|
||||
public static final CarColor NAVIGATION_TEMPLATE_BACKGROUND = CarColor.GREEN;
|
||||
public static final CarColor BUTTON_ACCEPT = CarColor.GREEN;
|
||||
|
||||
private Colors() {}
|
||||
|
||||
Reference in New Issue
Block a user