From 8f6f447926d12a4607d38a864bf4c271e9e6ecf9 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Wed, 6 Dec 2017 18:38:26 +0200 Subject: [PATCH] Change colors --- .../res/layout/map_context_menu_fragment.xml | 56 ++++++++++++------- OsmAnd/res/values/attrs.xml | 1 + OsmAnd/res/values/colors.xml | 8 +++ OsmAnd/res/values/styles.xml | 2 + .../plus/mapcontextmenu/MapContextMenu.java | 4 +- .../MapContextMenuFragment.java | 30 ++++++---- .../plus/mapcontextmenu/MenuController.java | 2 +- .../controllers/MapDataMenuController.java | 2 +- .../controllers/TransportRouteController.java | 2 +- 9 files changed, 72 insertions(+), 35 deletions(-) diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index 64a65888e8..a5dfe74277 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -5,7 +5,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@android:color/transparent"> + android:background="@android:color/transparent" + xmlns:osmand="http://schemas.android.com/apk/res-auto"> + android:background="?attr/ctx_menu_divider"/> - + android:text="@string/favourites_context_menu_add" + android:textColor="@color/ctx_menu_buttons_text_color" + android:textSize="@dimen/default_sub_text_size" + osmand:typeface="@string/font_roboto_regular"/> @@ -401,12 +405,15 @@ android:scaleType="center" android:src="@drawable/map_action_flag_dark"/> - + android:text="@string/shared_string_marker" + android:textColor="@color/ctx_menu_buttons_text_color" + android:textSize="@dimen/default_sub_text_size" + osmand:typeface="@string/font_roboto_regular"/> @@ -429,12 +436,15 @@ android:scaleType="center" android:src="@drawable/map_action_gshare_dark"/> - + android:text="@string/shared_string_share" + android:textColor="@color/ctx_menu_buttons_text_color" + android:textSize="@dimen/default_sub_text_size" + osmand:typeface="@string/font_roboto_regular"/> @@ -457,12 +467,15 @@ android:scaleType="center" android:src="@drawable/map_overflow_menu_white"/> - + android:text="@string/shared_string_actions" + android:textColor="@color/ctx_menu_buttons_text_color" + android:textSize="@dimen/default_sub_text_size" + osmand:typeface="@string/font_roboto_regular"/> @@ -472,7 +485,7 @@ android:id="@+id/buttons_bottom_border" android:layout_width="match_parent" android:layout_height="1dp" - android:background="?attr/dashboard_divider"/> + android:background="?attr/ctx_menu_divider"/> -