From 2c4d214bbd9d2b1d66899c06eba4323593a40dbe Mon Sep 17 00:00:00 2001 From: xmd5a Date: Mon, 23 Nov 2015 12:04:55 +0300 Subject: [PATCH] Change regiond downloads colors (from basemap) --- OsmAnd/res/values/colors.xml | 5 +++++ .../src/net/osmand/plus/views/DownloadedRegionsLayer.java | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 3a2657cdd1..e772395d62 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -172,4 +172,9 @@ #2f7af5 #78909c + + + #6632C832 + #66FF8F00 + #66FFFF00 \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java b/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java index 7b9ae89aea..bd7a9d5790 100644 --- a/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java @@ -104,10 +104,10 @@ public class DownloadedRegionsLayer extends OsmandMapLayer implements IContextMe rm = app.getResourceManager(); osmandRegions = rm.getOsmandRegions(); - paintDownloaded = getPaint(Color.argb(100, 50, 200, 50)); - paintSelected = getPaint(Color.argb(100, 255, 143, 0)); + paintDownloaded = getPaint(view.getResources().getColor(R.color.region_uptodate)); + paintSelected = getPaint(view.getResources().getColor(R.color.region_selected); paintDownloading = getPaint(Color.argb(40, 50, 200, 50)); - paintOutdated = getPaint(Color.argb(100, 0, 128, 255)); + paintOutdated = getPaint(view.getResources().getColor(R.color.region_updateable)); textPaint = new TextPaint(); final WindowManager wmgr = (WindowManager) view.getApplication().getSystemService(Context.WINDOW_SERVICE);