From fbfac2a40dc89c5edc54435ffb64833ece8a39fc Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 26 Jan 2018 11:33:17 +0200 Subject: [PATCH] Change remove and reorder icons color --- OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java index 6a722fc9f0..0d74348f42 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/WaypointDialogHelper.java @@ -391,9 +391,10 @@ public class WaypointDialogHelper { boolean startPoint = notFlatTargets && ((TargetPoint) point.point).start; final TargetPointsHelper targetPointsHelper = app.getTargetPointsHelper(); boolean canRemove = !targetPointsHelper.getIntermediatePoints().isEmpty(); + int iconResId = nightMode ? R.color.marker_circle_button_color_dark : R.color.ctx_menu_title_color_dark; remove.setVisibility(View.VISIBLE); - remove.setImageDrawable(app.getIconsCache().getIcon(R.drawable.ic_action_remove_dark, !nightMode)); + remove.setImageDrawable(app.getIconsCache().getIcon(R.drawable.ic_action_remove_dark, iconResId)); remove.setEnabled(canRemove); remove.setAlpha(canRemove ? 1 : .5f); if (canRemove) { @@ -423,7 +424,7 @@ public class WaypointDialogHelper { move.setVisibility(notFlatTargets ? View.VISIBLE : View.GONE); if (notFlatTargets) { - move.setImageDrawable(app.getIconsCache().getIcon(R.drawable.ic_action_reorder, !nightMode)); + move.setImageDrawable(app.getIconsCache().getIcon(R.drawable.ic_action_reorder, iconResId)); move.setTag(new DragIcon() { @Override public void onClick() {