From f2f1dd65623085154e492673181e45903b5c1e41 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 1 Feb 2015 15:15:58 +0100 Subject: [PATCH] add comments for night view readability fixes --- OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java | 1 + OsmAnd/src/net/osmand/plus/views/controls/RulerControl.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 3758c3c11f..a853917e62 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -389,6 +389,7 @@ public class MapInfoLayer extends OsmandMapLayer { themeId = calcThemeId; boolean textBold = following; int textColor = nightMode ? view.getResources().getColor(R.color.widgettext_night):Color.BLACK; + // Night shadowColor always use widget background color for non-transparent night skin (from box_night_free_simple.9.png, is #dc262626) int textShadowColor = transparent && !nightMode? Color.WHITE : 0xdc262626; int boxTop; int boxTopStack; diff --git a/OsmAnd/src/net/osmand/plus/views/controls/RulerControl.java b/OsmAnd/src/net/osmand/plus/views/controls/RulerControl.java index 5251c067d4..8badd15064 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/RulerControl.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/RulerControl.java @@ -19,7 +19,7 @@ public class RulerControl extends MapControls { //ruler and ruler label appeareance: // Day view: color black, shadowColor white (transpparent skin or not) - // Night view: color widgettext_night, shadowColor always use widget background color of non-transparent night skin (from box_night_free_simple.9.png, is #dc262626) + // Night view: color widgettext_night, shadowColor always use widget background color for non-transparent night skin (from box_night_free_simple.9.png, is #dc262626) ShadowText cacheRulerText = null; double cacheRulerZoom = 0;