From 22623874612c49dc1fda72c28ada45c928e9b930 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 1 Feb 2015 15:05:33 +0100 Subject: [PATCH] add night shadow to widget text --- OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java | 2 -- OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java index a6a8a1e67e..c4c760ae3f 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapControlsLayer.java @@ -42,7 +42,6 @@ import android.widget.SeekBar; public class MapControlsLayer extends OsmandMapLayer { - //private static final int NIGHT_COLOR = 0xffC8C8C8; private static final int TIMEOUT_TO_SHOW_BUTTONS = 5000; private final MapActivity mapActivity; private int shadowColor = -1; @@ -156,7 +155,6 @@ public class MapControlsLayer extends OsmandMapLayer { public void onDraw(Canvas canvas, RotatedTileBox tileBox, DrawSettings nightMode) { boolean isNight = nightMode != null && nightMode.isNightMode(); int shadw = isNight ? Color.TRANSPARENT : Color.WHITE; - //int textColor = isNight ? NIGHT_COLOR : Color.BLACK ; int textColor = isNight ? mapActivity.getResources().getColor(R.color.widgettext_night) : Color.BLACK ; if(shadowColor != shadw) { shadowColor = shadw; diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 8b000ba750..3758c3c11f 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -388,8 +388,8 @@ public class MapInfoLayer extends OsmandMapLayer { if (themeId != calcThemeId) { themeId = calcThemeId; boolean textBold = following; - int textColor = nightMode ? view.getResources().getColor(R.color.widgettext_night):Color.BLACK ; - int textShadowColor = transparent && !nightMode? Color.WHITE : Color.TRANSPARENT ; + int textColor = nightMode ? view.getResources().getColor(R.color.widgettext_night):Color.BLACK; + int textShadowColor = transparent && !nightMode? Color.WHITE : 0xdc262626; int boxTop; int boxTopStack; int boxTopR;