Change colors for "side of the world" buttons
This commit is contained in:
parent
ab7845e092
commit
322c0c6732
2 changed files with 10 additions and 6 deletions
|
@ -47,10 +47,10 @@
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textColor="@color/dashboard_blue"
|
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textSize="@dimen/default_list_text_size"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:text="N"/>
|
tools:text="N"
|
||||||
|
tools:textColor="@color/dashboard_blue"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/north_side_iv"
|
android:id="@+id/north_side_iv"
|
||||||
|
@ -195,10 +195,10 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textColor="@color/dashboard_blue"
|
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textSize="@dimen/default_list_text_size"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:text="W"/>
|
tools:text="W"
|
||||||
|
tools:textColor="@color/dashboard_blue"/>
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/west_side_iv"
|
android:id="@+id/west_side_iv"
|
||||||
|
|
|
@ -391,11 +391,15 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ColorRes int colorId = lightTheme ? R.color.dashboard_blue : R.color.ctx_menu_direction_color_dark;
|
||||||
boolean lat = id == R.id.lat_side_of_the_world_btn;
|
boolean lat = id == R.id.lat_side_of_the_world_btn;
|
||||||
Drawable icon = getColoredIcon(lat ? R.drawable.ic_action_coordinates_longitude
|
Drawable icon = getColoredIcon(
|
||||||
: R.drawable.ic_action_coordinates_latitude, R.color.dashboard_blue);
|
lat ? R.drawable.ic_action_coordinates_longitude : R.drawable.ic_action_coordinates_latitude, colorId
|
||||||
|
);
|
||||||
((ImageView) sideOfTheWorldBtn.findViewById(lat ? R.id.north_side_iv : R.id.west_side_iv)).setImageDrawable(icon);
|
((ImageView) sideOfTheWorldBtn.findViewById(lat ? R.id.north_side_iv : R.id.west_side_iv)).setImageDrawable(icon);
|
||||||
((ImageView) sideOfTheWorldBtn.findViewById(lat ? R.id.south_side_iv : R.id.east_side_iv)).setImageDrawable(icon);
|
((ImageView) sideOfTheWorldBtn.findViewById(lat ? R.id.south_side_iv : R.id.east_side_iv)).setImageDrawable(icon);
|
||||||
|
((TextView) sideOfTheWorldBtn.findViewById(lat ? R.id.lat_side_of_the_world_tv : R.id.lon_side_of_the_world_tv))
|
||||||
|
.setTextColor(getResolvedColor(colorId));
|
||||||
|
|
||||||
updateSideOfTheWorldBtn(sideOfTheWorldBtn, false);
|
updateSideOfTheWorldBtn(sideOfTheWorldBtn, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue