From 4a87cc3f39720634579ffd6a165f733e1e8bee10 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 22 Nov 2015 09:53:09 +0100 Subject: [PATCH] localize region colors --- OsmAnd/res/values/colors.xml | 6 ++++++ .../osmand/plus/views/DownloadedRegionsLayer.java | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index 3a2657cdd1..bfbd1e1005 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -172,4 +172,10 @@ #2f7af5 #78909c + + + #5532C832 + #55FF8F00 + #55FFFF00 + #2Acd2c33 \ 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 140ab065f7..c512ad3f84 100644 --- a/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/DownloadedRegionsLayer.java @@ -104,10 +104,14 @@ 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)); - paintDownloading = getPaint(Color.argb(40, 50, 200, 50)); - paintOutdated = getPaint(Color.argb(100, 0, 128, 255)); + //paintDownloaded = getPaint(Color.argb(100, 50, 200, 50)); + //paintSelected = getPaint(Color.argb(100, 255, 143, 0)); + //paintDownloading = getPaint(Color.argb(40, 50, 200, 50)); + //paintOutdated = getPaint(Color.argb(100, 0, 128, 255)); + paintDownloaded = getPaint(view.getResources().getColor(R.color.region_uptodate)); + paintOutdated = getPaint(view.getResources().getColor(R.color.region_updateable)); + paintSelected = getPaint(view.getResources().getColor(R.color.region_selected); + paintDownloading = getPaint(view.getResources().getColor(R.color.region_downloading)); textPaint = new TextPaint(); final WindowManager wmgr = (WindowManager) view.getApplication().getSystemService(Context.WINDOW_SERVICE);