From 86c701c925becb581c24d76f03d13aa69f39f74d Mon Sep 17 00:00:00 2001 From: Nazar Date: Wed, 11 Sep 2019 13:54:15 +0300 Subject: [PATCH] refactor Route Preparation "start" button text and icon color refactor MapMarkers -> Group -> Marker text color refactor Map markers -> Done -> Toast background and "undo" button color --- OsmAnd/res/values/colors.xml | 2 +- .../osmand/plus/mapmarkers/MapMarkersHistoryFragment.java | 3 ++- .../plus/mapmarkers/adapters/MapMarkersActiveAdapter.java | 6 ++++-- .../plus/mapmarkers/adapters/MapMarkersGroupsAdapter.java | 5 +++-- .../plus/mapmarkers/adapters/MapMarkersHistoryAdapter.java | 3 ++- .../osmand/plus/routepreparationmenu/MapRouteInfoMenu.java | 2 +- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 6efcf6bee7..5837c292ae 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -27,7 +27,7 @@ #f0f0f0 #303436 #ffffff - #cccccc + #ebebeb #727272 #727272 #00ffffff diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java index b1c17814c5..c66692f0b5 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java @@ -170,7 +170,8 @@ public class MapMarkersHistoryFragment extends Fragment implements MapMarkersHel } } }); - AndroidUtils.setSnackbarTextColor(snackbar, R.color.active_color_primary_dark); + AndroidUtils.setSnackbarTextColor(snackbar, night ? R.color.active_color_primary_dark : R.color.active_color_primary_light); + snackbar.getView().setBackgroundColor(ContextCompat.getColor(app, night ? R.color.list_background_color_dark : R.color.list_background_color_light)); snackbar.show(); } } diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java index 0a7384b50b..37c41b14cd 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java @@ -162,7 +162,8 @@ public class MapMarkersActiveAdapter extends RecyclerView.Adapter