mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Move hardcoded colors to colors.xml file
This commit is contained in:
parent
e43569481d
commit
7e40d94dd0
2 changed files with 5 additions and 2 deletions
|
|
@ -324,8 +324,8 @@ public class NearbyMapFragment extends CommonsDaggerSupportFragment
|
|||
|
||||
PolygonOptions currentLocationPolygonOptions = new PolygonOptions()
|
||||
.addAll(circle)
|
||||
.strokeColor(Color.parseColor("#55000000"))
|
||||
.fillColor(Color.parseColor("#11000000"));
|
||||
.strokeColor(getResources().getColor(R.color.current_marker_stroke))
|
||||
.fillColor(getResources().getColor(R.color.current_marker_fill));
|
||||
mapboxMap.addPolygon(currentLocationPolygonOptions);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,4 +70,7 @@
|
|||
<color name="color_error">#FF0000</color>
|
||||
<color name="yes_button_color">#B22222</color>
|
||||
<color name="no_button_color">#006400</color>
|
||||
|
||||
<color name="current_marker_stroke">#55000000</color>
|
||||
<color name="current_marker_fill">#11000000</color>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue