Revert names for old app profile icons
This commit is contained in:
parent
360a8565c7
commit
d058e15639
36 changed files with 56 additions and 56 deletions
|
@ -52,7 +52,7 @@
|
|||
android:textAllCaps="true"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="@dimen/default_desc_text_size"
|
||||
tools:drawableRight="@drawable/ic_action_car"
|
||||
tools:drawableRight="@drawable/ic_action_car_dark"
|
||||
tools:text="car"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
android:textAllCaps="true"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="@dimen/default_desc_text_size"
|
||||
tools:drawableRight="@drawable/ic_action_car"
|
||||
tools:drawableRight="@drawable/ic_action_car_dark"
|
||||
tools:text="car"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/bottom_sheet_icon_margin"
|
||||
android:layout_marginRight="@dimen/bottom_sheet_icon_margin"
|
||||
tools:src="@drawable/ic_action_car"/>
|
||||
tools:src="@drawable/ic_action_car_dark"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:visibility="invisible"
|
||||
android:layout_gravity="center"
|
||||
tools:src="@drawable/ic_action_bicycle" />
|
||||
tools:src="@drawable/ic_action_bicycle_dark" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
android:layout_width="@dimen/standard_icon_size"
|
||||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:layout_gravity="center"
|
||||
tools:src="@drawable/ic_action_bicycle" />
|
||||
tools:src="@drawable/ic_action_bicycle_dark" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/content_padding"
|
||||
android:layout_marginRight="@dimen/content_padding"
|
||||
tools:src="@drawable/ic_action_car"
|
||||
tools:src="@drawable/ic_action_car_dark"
|
||||
tools:tint="?colorAccent" />
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
android:layout_marginTop="@dimen/bottom_sheet_icon_margin"
|
||||
android:layout_marginRight="@dimen/content_padding"
|
||||
android:layout_marginBottom="@dimen/bottom_sheet_icon_margin"
|
||||
tools:src="@drawable/ic_action_car"
|
||||
tools:src="@drawable/ic_action_car_dark"
|
||||
tools:tint="@color/active_color_primary_light" />
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
android:layout_width="@dimen/standard_icon_size"
|
||||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:layout_gravity="center"
|
||||
tools:src="@drawable/ic_action_car"
|
||||
tools:src="@drawable/ic_action_car_dark"
|
||||
tools:tint="@color/active_color_primary_light" />
|
||||
|
||||
</FrameLayout>
|
|
@ -36,7 +36,7 @@
|
|||
android:layout_marginTop="@dimen/bottom_sheet_icon_margin"
|
||||
android:layout_marginRight="@dimen/content_padding"
|
||||
android:layout_marginBottom="@dimen/bottom_sheet_icon_margin"
|
||||
tools:src="@drawable/ic_action_car"
|
||||
tools:src="@drawable/ic_action_car_dark"
|
||||
tools:tint="@color/profile_icon_color_blue_light_default" />
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
android:layout_height="@dimen/standard_icon_size"
|
||||
android:layout_marginLeft="@dimen/content_padding"
|
||||
android:layout_marginRight="@dimen/favorites_icon_right_margin"
|
||||
tools:src="@drawable/ic_action_bicycle" />
|
||||
tools:src="@drawable/ic_action_bicycle_dark" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
android:layout_marginLeft="@dimen/bottom_sheet_image_text_margin_start"
|
||||
android:layout_marginEnd="@dimen/content_padding"
|
||||
android:layout_marginRight="@dimen/content_padding"
|
||||
tools:src="@drawable/ic_action_bus"
|
||||
tools:src="@drawable/ic_action_bus_dark"
|
||||
tools:tint="?attr/default_icon_color" />
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
android:layout_marginTop="@dimen/context_menu_padding_margin_large"
|
||||
android:layout_marginEnd="@dimen/favorites_icon_right_margin"
|
||||
android:layout_marginRight="@dimen/favorites_icon_right_margin"
|
||||
android:src="@drawable/ic_action_pedestrian"
|
||||
android:src="@drawable/ic_action_pedestrian_dark"
|
||||
android:tint="@color/description_font_and_bottom_sheet_icons" />
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
android:layout_height="20dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_margin="4dp"
|
||||
tools:src="@drawable/ic_action_bus" />
|
||||
tools:src="@drawable/ic_action_bus_dark" />
|
||||
|
||||
<net.osmand.plus.widgets.TextViewEx
|
||||
android:id="@+id/transport_stop_route_text"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
android:layout_marginTop="@dimen/context_menu_padding_margin_large"
|
||||
android:layout_marginEnd="@dimen/favorites_icon_right_margin"
|
||||
android:layout_marginRight="@dimen/favorites_icon_right_margin"
|
||||
tools:src="@drawable/ic_action_bus"
|
||||
tools:src="@drawable/ic_action_bus_dark"
|
||||
tools:tint="?attr/route_info_control_icon_color" />
|
||||
|
||||
<LinearLayout
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
android:layout="@layout/preference_with_descr"
|
||||
android:summary="@string/rendering_value_car_name"
|
||||
android:title="@string/nav_type_hint"
|
||||
tools:icon="@drawable/ic_action_car" />
|
||||
tools:icon="@drawable/ic_action_car_dark" />
|
||||
|
||||
<Preference
|
||||
android:key="route_parameters"
|
||||
|
@ -43,7 +43,7 @@
|
|||
android:summary="@string/vehicle_parameters_descr"
|
||||
android:title="@string/vehicle_parameters"
|
||||
app:fragment="net.osmand.plus.settings.VehicleParametersFragment"
|
||||
tools:icon="@drawable/ic_action_car" />
|
||||
tools:icon="@drawable/ic_action_car_dark" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="other"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
android:persistent="false"
|
||||
android:title="@string/configure_profile"
|
||||
app:fragment="net.osmand.plus.settings.ConfigureProfileFragment"
|
||||
tools:icon="@drawable/ic_action_car" />
|
||||
tools:icon="@drawable/ic_action_car_dark" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="app_profiles"
|
||||
|
|
|
@ -96,28 +96,28 @@ public class ApplicationMode {
|
|||
public static final ApplicationMode CAR = createBase(R.string.app_mode_car, "car")
|
||||
.speed(12.5f, 35)
|
||||
.locationIcon(LocationIcon.CAR).navigationIcon(NavigationIcon.DEFAULT)
|
||||
.icon(R.drawable.ic_action_car, R.drawable.map_action_car_dark, "ic_action_car")
|
||||
.icon(R.drawable.ic_action_car_dark, R.drawable.map_action_car_dark, "ic_action_car_dark")
|
||||
.setRoutingProfile("car").description(R.string.base_profile_descr_car).reg();
|
||||
|
||||
public static final ApplicationMode BICYCLE = createBase(R.string.app_mode_bicycle, "bicycle")
|
||||
.speed(2.77f, 15).arrivalDistance(60).offRouteDistance(50)
|
||||
.locationIcon(LocationIcon.BICYCLE).navigationIcon(NavigationIcon.DEFAULT)
|
||||
.icon(R.drawable.ic_action_bicycle, R.drawable.map_action_bicycle_dark, "ic_action_bicycle")
|
||||
.icon(R.drawable.ic_action_bicycle_dark, R.drawable.map_action_bicycle_dark, "ic_action_bicycle_dark")
|
||||
.setRoutingProfile("bicycle").description(R.string.base_profile_descr_bicycle).reg();
|
||||
|
||||
public static final ApplicationMode PEDESTRIAN = createBase(R.string.app_mode_pedestrian, "pedestrian")
|
||||
.speed(1.11f, 5).arrivalDistance(45).offRouteDistance(20)
|
||||
.icon(R.drawable.ic_action_pedestrian, R.drawable.map_action_pedestrian_dark, "ic_action_pedestrian")
|
||||
.icon(R.drawable.ic_action_pedestrian_dark, R.drawable.map_action_pedestrian_dark, "ic_action_pedestrian_dark")
|
||||
.setRoutingProfile("pedestrian").description(R.string.base_profile_descr_pedestrian).reg();
|
||||
|
||||
public static final ApplicationMode PUBLIC_TRANSPORT = createBase(R.string.app_mode_public_transport, "public_transport")
|
||||
.icon(R.drawable.ic_action_bus, R.drawable.map_action_bus_dark, "ic_action_bus")
|
||||
.icon(R.drawable.ic_action_bus_dark, R.drawable.map_action_bus_dark, "ic_action_bus_dark")
|
||||
.setRoutingProfile("public_transport").description(R.string.base_profile_descr_public_transport).reg();
|
||||
|
||||
public static final ApplicationMode BOAT = createBase(R.string.app_mode_boat, "boat")
|
||||
.speed(1.38f, 20)
|
||||
.locationIcon(LocationIcon.DEFAULT).navigationIcon(NavigationIcon.NAUTICAL)
|
||||
.icon(R.drawable.ic_action_sail_boat, R.drawable.map_action_sail_boat_dark, "ic_action_sail_boat")
|
||||
.icon(R.drawable.ic_action_sail_boat_dark, R.drawable.map_action_sail_boat_dark, "ic_action_sail_boat_dark")
|
||||
.setRoutingProfile("boat").description(R.string.base_profile_descr_boat).reg();
|
||||
|
||||
public static final ApplicationMode AIRCRAFT = createBase(R.string.app_mode_aircraft, "aircraft")
|
||||
|
@ -854,19 +854,19 @@ public class ApplicationMode {
|
|||
|
||||
public enum ProfileIcons {
|
||||
DEFAULT(R.drawable.ic_world_globe_dark, R.string.app_mode_default, "ic_world_globe_dark"),
|
||||
CAR(R.drawable.ic_action_car, R.string.app_mode_car, "ic_action_car"),
|
||||
CAR(R.drawable.ic_action_car_dark, R.string.app_mode_car, "ic_action_car_dark"),
|
||||
TAXI(R.drawable.ic_action_taxi, R.string.app_mode_taxi, "ic_action_taxi"),
|
||||
TRUCK(R.drawable.ic_action_truck, R.string.app_mode_truck, "ic_action_truck"),
|
||||
TRUCK(R.drawable.ic_action_truck_dark, R.string.app_mode_truck, "ic_action_truck_dark"),
|
||||
SHUTTLE_BUS(R.drawable.ic_action_shuttle_bus, R.string.app_mode_shuttle_bus, "ic_action_shuttle_bus"),
|
||||
BUS(R.drawable.ic_action_bus, R.string.app_mode_bus, "ic_action_bus"),
|
||||
BUS(R.drawable.ic_action_bus_dark, R.string.app_mode_bus, "ic_action_bus_dark"),
|
||||
SUBWAY(R.drawable.ic_action_subway, R.string.app_mode_subway, "ic_action_subway"),
|
||||
MOTORCYCLE(R.drawable.ic_action_motorcycle, R.string.app_mode_motorcycle, "ic_action_motorcycle"),
|
||||
BICYCLE(R.drawable.ic_action_bicycle, R.string.app_mode_bicycle, "ic_action_bicycle"),
|
||||
MOTORCYCLE(R.drawable.ic_action_motorcycle_dark, R.string.app_mode_motorcycle, "ic_action_motorcycle_dark"),
|
||||
BICYCLE(R.drawable.ic_action_bicycle_dark, R.string.app_mode_bicycle, "ic_action_bicycle_dark"),
|
||||
HORSE(R.drawable.ic_action_horse, R.string.app_mode_horse, "ic_action_horse"),
|
||||
PEDESTRIAN(R.drawable.ic_action_pedestrian, R.string.app_mode_pedestrian, "ic_action_pedestrian"),
|
||||
TREKKING(R.drawable.ic_action_trekking, R.string.app_mode_hiking, "ic_action_trekking"),
|
||||
PEDESTRIAN(R.drawable.ic_action_pedestrian_dark, R.string.app_mode_pedestrian, "ic_action_pedestrian_dark"),
|
||||
TREKKING(R.drawable.ic_action_trekking_dark, R.string.app_mode_hiking, "ic_action_trekking_dark"),
|
||||
SKIING(R.drawable.ic_action_skiing, R.string.app_mode_skiing, "ic_action_skiing"),
|
||||
SAIL_BOAT(R.drawable.ic_action_sail_boat, R.string.app_mode_boat, "ic_action_sail_boat"),
|
||||
SAIL_BOAT(R.drawable.ic_action_sail_boat_dark, R.string.app_mode_boat, "ic_action_sail_boat_dark"),
|
||||
AIRCRAFT(R.drawable.ic_action_aircraft, R.string.app_mode_aircraft, "ic_action_aircraft"),
|
||||
HELICOPTER(R.drawable.ic_action_helicopter, R.string.app_mode_helicopter, "ic_action_helicopter"),
|
||||
TRANSPORTER(R.drawable.ic_action_personal_transporter, R.string.app_mode_personal_transporter, "ic_action_personal_transporter"),
|
||||
|
|
|
@ -334,7 +334,7 @@ public class ConfigureMapMenu {
|
|||
.setListener(l).createItem());
|
||||
|
||||
/*
|
||||
ContextMenuItem item = createProperties(customRules, null, R.string.rendering_category_transport, R.drawable.ic_action_bus,
|
||||
ContextMenuItem item = createProperties(customRules, null, R.string.rendering_category_transport, R.drawable.ic_action_bus_dark,
|
||||
"transport", settings.TRANSPORT_DEFAULT_SETTINGS, adapter, activity, false);
|
||||
if (item != null) {
|
||||
adapter.addItem(item);
|
||||
|
|
|
@ -1424,7 +1424,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
|||
TextView transportStopRouteTextView = (TextView) convertView.findViewById(R.id.transport_stop_route_text);
|
||||
ImageView transportStopRouteImageView = (ImageView) convertView.findViewById(R.id.transport_stop_route_icon);
|
||||
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus : transportStopRoute.type.getResourceId();
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus_dark : transportStopRoute.type.getResourceId();
|
||||
transportStopRouteImageView.setImageDrawable(app.getUIUtilities().getPaintedIcon(drawableResId, UiUtilities.getContrastColor(mapActivity, bgColor, true)));
|
||||
transportStopRouteTextView.setText(routeRef + ": " + routeDescription);
|
||||
GradientDrawable gradientDrawableBg = (GradientDrawable) convertView.getBackground();
|
||||
|
|
|
@ -816,12 +816,12 @@ public class EditProfileFragment extends BaseOsmAndFragment {
|
|||
private enum RoutingProfilesResources {
|
||||
STRAIGHT_LINE_MODE(R.string.routing_profile_straightline, R.drawable.ic_action_split_interval),
|
||||
BROUTER_MODE(R.string.routing_profile_broutrer, R.drawable.ic_action_split_interval),
|
||||
CAR(R.string.rendering_value_car_name, R.drawable.ic_action_car),
|
||||
PEDESTRIAN(R.string.rendering_value_pedestrian_name, R.drawable.ic_action_pedestrian),
|
||||
BICYCLE(R.string.rendering_value_bicycle_name, R.drawable.ic_action_bicycle),
|
||||
CAR(R.string.rendering_value_car_name, R.drawable.ic_action_car_dark),
|
||||
PEDESTRIAN(R.string.rendering_value_pedestrian_name, R.drawable.ic_action_pedestrian_dark),
|
||||
BICYCLE(R.string.rendering_value_bicycle_name, R.drawable.ic_action_bicycle_dark),
|
||||
SKI(R.string.routing_profile_ski, R.drawable.ic_action_skiing),
|
||||
PUBLIC_TRANSPORT(R.string.app_mode_public_transport, R.drawable.ic_action_bus),
|
||||
BOAT(R.string.app_mode_boat, R.drawable.ic_action_sail_boat),
|
||||
PUBLIC_TRANSPORT(R.string.app_mode_public_transport, R.drawable.ic_action_bus_dark),
|
||||
BOAT(R.string.app_mode_boat, R.drawable.ic_action_sail_boat_dark),
|
||||
GEOCODING(R.string.routing_profile_geocoding, R.drawable.ic_action_world_globe);
|
||||
|
||||
int stringRes;
|
||||
|
|
|
@ -22,12 +22,12 @@ public class RoutingProfileDataObject extends ProfileDataObject {
|
|||
public enum RoutingProfilesResources {
|
||||
STRAIGHT_LINE_MODE(R.string.routing_profile_straightline, R.drawable.ic_action_split_interval),
|
||||
BROUTER_MODE(R.string.routing_profile_broutrer, R.drawable.ic_action_split_interval),
|
||||
CAR(R.string.rendering_value_car_name, R.drawable.ic_action_car),
|
||||
PEDESTRIAN(R.string.rendering_value_pedestrian_name, R.drawable.ic_action_pedestrian),
|
||||
BICYCLE(R.string.rendering_value_bicycle_name, R.drawable.ic_action_bicycle),
|
||||
CAR(R.string.rendering_value_car_name, R.drawable.ic_action_car_dark),
|
||||
PEDESTRIAN(R.string.rendering_value_pedestrian_name, R.drawable.ic_action_pedestrian_dark),
|
||||
BICYCLE(R.string.rendering_value_bicycle_name, R.drawable.ic_action_bicycle_dark),
|
||||
SKI(R.string.routing_profile_ski, R.drawable.ic_action_skiing),
|
||||
PUBLIC_TRANSPORT(R.string.app_mode_public_transport, R.drawable.ic_action_bus),
|
||||
BOAT(R.string.app_mode_boat, R.drawable.ic_action_sail_boat),
|
||||
PUBLIC_TRANSPORT(R.string.app_mode_public_transport, R.drawable.ic_action_bus_dark),
|
||||
BOAT(R.string.app_mode_boat, R.drawable.ic_action_sail_boat_dark),
|
||||
GEOCODING(R.string.routing_profile_geocoding, R.drawable.ic_action_world_globe);
|
||||
|
||||
int stringRes;
|
||||
|
|
|
@ -468,7 +468,7 @@ public class RouteDetailsFragment extends ContextMenuFragment implements PublicT
|
|||
stopsContainer.setOrientation(LinearLayout.VERTICAL);
|
||||
baseContainer.addView(stopsContainer, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
|
||||
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus : transportStopRoute.type.getResourceId();
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus_dark : transportStopRoute.type.getResourceId();
|
||||
Drawable icon = getContentIcon(drawableResId);
|
||||
|
||||
Typeface typeface = FontCache.getRobotoMedium(app);
|
||||
|
@ -1124,7 +1124,7 @@ public class RouteDetailsFragment extends ContextMenuFragment implements PublicT
|
|||
});
|
||||
baseView.addView(ll);
|
||||
|
||||
Drawable icon = getPaintedContentIcon(R.drawable.ic_action_pedestrian, getActiveColor());
|
||||
Drawable icon = getPaintedContentIcon(R.drawable.ic_action_pedestrian_dark, getActiveColor());
|
||||
ImageView iconView = new ImageView(view.getContext());
|
||||
iconView.setImageDrawable(icon);
|
||||
FrameLayout.LayoutParams imageViewLayoutParams = new FrameLayout.LayoutParams(dpToPx(24), dpToPx(24));
|
||||
|
@ -1338,7 +1338,7 @@ public class RouteDetailsFragment extends ContextMenuFragment implements PublicT
|
|||
|
||||
private CollapsableView getCollapsableTransportStopRoutesView(@NonNull Context context, TransportStopRoute transportStopRoute, final List<TransportStop> stops) {
|
||||
LinearLayout view = (LinearLayout) buildCollapsableContentView(context, false);
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus : transportStopRoute.type.getResourceId();
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus_dark : transportStopRoute.type.getResourceId();
|
||||
Drawable icon = getContentIcon(drawableResId);
|
||||
for (int i = 0; i < stops.size(); i++) {
|
||||
final TransportStop stop = stops.get(i);
|
||||
|
@ -1421,7 +1421,7 @@ public class RouteDetailsFragment extends ContextMenuFragment implements PublicT
|
|||
TextView transportStopRouteTextView = (TextView) convertView.findViewById(R.id.transport_stop_route_text);
|
||||
ImageView transportStopRouteImageView = (ImageView) convertView.findViewById(R.id.transport_stop_route_icon);
|
||||
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus : transportStopRoute.type.getResourceId();
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus_dark : transportStopRoute.type.getResourceId();
|
||||
transportStopRouteImageView.setImageDrawable(app.getUIUtilities().getPaintedIcon(drawableResId, UiUtilities.getContrastColor(mapActivity, bgColor, true)));
|
||||
transportStopRouteTextView.setText(routeRef + ": " + routeDescription);
|
||||
GradientDrawable gradientDrawableBg = (GradientDrawable) convertView.getBackground();
|
||||
|
|
|
@ -525,8 +525,8 @@ public class RoutingOptionsHelper {
|
|||
if (rp instanceof LocalRoutingParameterGroup) {
|
||||
LocalRoutingParameterGroup group = (LocalRoutingParameterGroup) rp;
|
||||
if (group.groupName.equals(DRIVING_STYLE)) {
|
||||
rp.activeIconId = R.drawable.ic_action_bicycle;
|
||||
rp.disabledIconId = R.drawable.ic_action_bicycle;
|
||||
rp.activeIconId = R.drawable.ic_action_bicycle_dark;
|
||||
rp.disabledIconId = R.drawable.ic_action_bicycle_dark;
|
||||
}
|
||||
}
|
||||
if (rp.routingParameter == null) {
|
||||
|
@ -888,12 +888,12 @@ public class RoutingOptionsHelper {
|
|||
|
||||
@Override
|
||||
public int getActiveIconId() {
|
||||
return R.drawable.ic_action_bus;
|
||||
return R.drawable.ic_action_bus_dark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDisabledIconId() {
|
||||
return R.drawable.ic_action_bus;
|
||||
return R.drawable.ic_action_bus_dark;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ public class PublicTransportBetaWarningCard extends WarningCard {
|
|||
|
||||
public PublicTransportBetaWarningCard(@NonNull MapActivity mapActivity) {
|
||||
super(mapActivity);
|
||||
imageId = R.drawable.ic_action_bus;
|
||||
imageId = R.drawable.ic_action_bus_dark;
|
||||
title = mapActivity.getString(R.string.public_transport_warning_title);
|
||||
linkText = mapActivity.getString(R.string.public_transport_warning_descr_blog);
|
||||
startLinkIndex = linkText.lastIndexOf(" ");
|
||||
|
|
|
@ -348,7 +348,7 @@ public class PublicTransportCard extends BaseCard {
|
|||
TextView transportStopRouteTextView = (TextView) bageView.findViewById(R.id.transport_stop_route_text);
|
||||
ImageView transportStopRouteImageView = (ImageView) bageView.findViewById(R.id.transport_stop_route_icon);
|
||||
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus : transportStopRoute.type.getResourceId();
|
||||
int drawableResId = transportStopRoute.type == null ? R.drawable.ic_action_bus_dark : transportStopRoute.type.getResourceId();
|
||||
transportStopRouteImageView.setImageDrawable(app.getUIUtilities().getPaintedIcon(drawableResId, UiUtilities.getContrastColor(app, bgColor, true)));
|
||||
transportStopRouteTextView.setText(routeRef);
|
||||
GradientDrawable gradientDrawableBg = (GradientDrawable) bageView.getBackground();
|
||||
|
@ -388,7 +388,7 @@ public class PublicTransportCard extends BaseCard {
|
|||
TextView transportStopRouteTextView = (TextView) bageView.findViewById(R.id.transport_stop_route_text);
|
||||
ImageView transportStopRouteImageView = (ImageView) bageView.findViewById(R.id.transport_stop_route_icon);
|
||||
|
||||
transportStopRouteImageView.setImageDrawable(getActiveIcon(R.drawable.ic_action_pedestrian));
|
||||
transportStopRouteImageView.setImageDrawable(getActiveIcon(R.drawable.ic_action_pedestrian_dark));
|
||||
transportStopRouteTextView.setText(OsmAndFormatter.getFormattedDuration((int) walkTime, app));
|
||||
GradientDrawable gradientDrawableBg = (GradientDrawable) bageView.getBackground();
|
||||
gradientDrawableBg.setColor(activeColor);
|
||||
|
|
|
@ -9,7 +9,7 @@ public class PublicTransportNotFoundWarningCard extends WarningCard {
|
|||
|
||||
public PublicTransportNotFoundWarningCard(@NonNull MapActivity mapActivity) {
|
||||
super(mapActivity);
|
||||
imageId = R.drawable.ic_action_pedestrian;
|
||||
imageId = R.drawable.ic_action_pedestrian_dark;
|
||||
title = mapActivity.getString(R.string.public_transport_no_route_title) + "\n\n" + mapActivity.getString(R.string.public_transport_try_ped);
|
||||
linkText = mapActivity.getString(R.string.public_transport_calc_pedestrian);
|
||||
}
|
||||
|
|
|
@ -154,7 +154,7 @@ public class GeneralProfileSettingsFragment extends BaseSettingsFragment impleme
|
|||
private void setupDrivingRegionPref() {
|
||||
ApplicationMode selectedMode = getSelectedAppMode();
|
||||
Preference defaultDrivingRegion = findPreference(settings.DRIVING_REGION.getId());
|
||||
defaultDrivingRegion.setIcon(getContentIcon(R.drawable.ic_action_car));
|
||||
defaultDrivingRegion.setIcon(getContentIcon(R.drawable.ic_action_car_dark));
|
||||
defaultDrivingRegion.setSummary(getString(settings.DRIVING_REGION_AUTOMATIC.getModeValue(selectedMode) ? R.string.driving_region_automatic : settings.DRIVING_REGION.getModeValue(selectedMode).name));
|
||||
}
|
||||
|
||||
|
|
|
@ -389,7 +389,7 @@ public class RouteParametersFragment extends BaseSettingsFragment implements OnP
|
|||
case AVOID_ROUTING_PARAMETER_PREFIX:
|
||||
return getContentIcon(R.drawable.ic_action_alert);
|
||||
case DRIVING_STYLE:
|
||||
return getContentIcon(R.drawable.ic_action_bicycle);
|
||||
return getContentIcon(R.drawable.ic_action_bicycle_dark);
|
||||
case "fast_route_mode":
|
||||
return getContentIcon(R.drawable.ic_action_fastest_route);
|
||||
case "enable_time_conditional_routing":
|
||||
|
|
Loading…
Reference in a new issue