From 6c03803a8d659f2d5c76d47f484136b05682a914 Mon Sep 17 00:00:00 2001 From: Nazar Date: Wed, 8 Jan 2020 12:54:45 +0200 Subject: [PATCH] Fix dialogs padding and text color --- OsmAnd/res/layout/download_tiles.xml | 27 +++++++++++++++++--------- OsmAnd/res/layout/waypoint_reached.xml | 5 +++-- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/OsmAnd/res/layout/download_tiles.xml b/OsmAnd/res/layout/download_tiles.xml index 585a90f330..5352460059 100644 --- a/OsmAnd/res/layout/download_tiles.xml +++ b/OsmAnd/res/layout/download_tiles.xml @@ -2,6 +2,9 @@ @@ -17,30 +21,33 @@ android:id="@+id/ZoomToDownload" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:layout_marginLeft="10dp" - android:layout_marginRight="10dp" - android:layout_marginTop="5dp" /> + android:layout_marginLeft="@dimen/content_padding" + android:layout_marginRight="@dimen/content_padding" + android:layout_marginTop="@dimen/content_padding_small"/> + android:layout_height="wrap_content"> @@ -49,6 +56,8 @@ android:text="@string/tiles_to_download_estimated_size" android:gravity="center" android:id="@+id/DownloadDescription" + android:layout_marginTop="@dimen/content_padding_small" + android:textColor="?android:textColorSecondary" android:layout_width="fill_parent" android:layout_height="wrap_content" /> diff --git a/OsmAnd/res/layout/waypoint_reached.xml b/OsmAnd/res/layout/waypoint_reached.xml index 0b5afcc3cb..873a1441a8 100644 --- a/OsmAnd/res/layout/waypoint_reached.xml +++ b/OsmAnd/res/layout/waypoint_reached.xml @@ -48,6 +48,7 @@ android:layout_gravity="center_vertical" android:ellipsize="end" android:maxLines="2" + android:textColor="?android:textColorSecondary" android:textSize="@dimen/default_list_text_size" tools:text="Some waypoint text"/> @@ -75,7 +76,7 @@ android:layout_marginStart="6dp" android:drawablePadding="2dp" android:maxLines="1" - android:textColor="@color/text_color_secondary_dark" + android:textColor="?android:textColorSecondary" android:textSize="@dimen/default_sub_text_size" tools:text="Intermediate point "/> @@ -87,7 +88,7 @@ android:layout_weight="1" android:ellipsize="end" android:maxLines="1" - android:textColor="@color/text_color_secondary_dark" + android:textColor="?android:textColorSecondary" android:textSize="@dimen/default_sub_text_size" tools:text="some description"/>