Fix night colors

This commit is contained in:
Victor Shcherb 2013-07-14 23:51:21 +02:00
parent 57a7febfae
commit d3c2545dcf

View file

@ -130,12 +130,12 @@ public class MapControlsLayer extends OsmandMapLayer {
} }
int sh = Color.WHITE; int sh = Color.WHITE;
if (nightMode != null && nightMode.isNightMode()) { if (nightMode != null && nightMode.isNightMode()) {
sh = 0xffC8C8C8; sh = Color.TRANSPARENT;
} }
if(shadowColor != sh) { if(shadowColor != sh) {
shadowColor = sh; shadowColor = sh;
zoomTextPaint.setColor(sh == Color.WHITE ? Color.BLACK : sh); zoomTextPaint.setColor(sh == Color.WHITE ? Color.BLACK : 0xffC8C8C8);
rulerTextPaint.setColor(sh == Color.WHITE ? Color.BLACK : sh); rulerTextPaint.setColor(sh == Color.WHITE ? Color.BLACK : 0xffC8C8C8);
} }
if (showZoomLevel || !view.getSettings().SHOW_RULER.get()) { if (showZoomLevel || !view.getSettings().SHOW_RULER.get()) {
drawZoomLevel(canvas); drawZoomLevel(canvas);