add night shadow to widget text
This commit is contained in:
parent
9d471a3f8c
commit
2262387461
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue