add comments for night view readability fixes

This commit is contained in:
sonora 2015-02-01 15:15:58 +01:00
parent 2262387461
commit f2f1dd6562
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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;