fix color logic

This commit is contained in:
sonora 2015-02-01 17:25:30 +01:00
parent 93afffc0ff
commit 5282d1bf67

View file

@ -390,7 +390,7 @@ public class MapInfoLayer extends OsmandMapLayer {
boolean textBold = following; boolean textBold = following;
int textColor = nightMode ? view.getResources().getColor(R.color.widgettext_night):Color.BLACK; int textColor = nightMode ? view.getResources().getColor(R.color.widgettext_night):Color.BLACK;
// Night shadowColor always use widgettext_shadow_night, same as widget background color for non-transparent night skin (from box_night_free_simple.9.png) // Night shadowColor always use widgettext_shadow_night, same as widget background color for non-transparent night skin (from box_night_free_simple.9.png)
int textShadowColor = transparent && !nightMode? Color.WHITE : view.getResources().getColor(R.color.widgettext_shadow_night); int textShadowColor = nightMode? view.getResources().getColor(R.color.widgettext_shadow_night) : Color.WHITE;
int boxTop; int boxTop;
int boxTopStack; int boxTopStack;
int boxTopR; int boxTopR;