Merge pull request #5730 from osmandapp/TransportStopUiImprovements
Fix contrast color for transport stops
This commit is contained in:
commit
f2864c0f13
1 changed files with 3 additions and 1 deletions
|
@ -811,7 +811,9 @@ public class MenuBuilder {
|
|||
GradientDrawable shape = new GradientDrawable();
|
||||
shape.setShape(GradientDrawable.RECTANGLE);
|
||||
shape.setCornerRadius(dpToPx(3));
|
||||
shape.setColor(route.getColor(mapActivity.getMyApplication(), !light));
|
||||
int bgColor = route.getColor(app, !light);
|
||||
shape.setColor(bgColor);
|
||||
transportRect.setTextColor(UiUtilities.getContrastColor(app, bgColor, true));
|
||||
|
||||
transportRect.setBackgroundDrawable(shape);
|
||||
transportRect.setText(adjustRouteRef(route.route.getRef()));
|
||||
|
|
Loading…
Reference in a new issue