Added ppGren to the colors resource, which is the PalmPay green and used that color in the connected status icon and the color of the latencies < 400ms.

This commit is contained in:
Severiano Jaramillo 2018-12-21 21:55:17 -06:00
parent c4fd79f22c
commit a96f3d0b77
3 changed files with 3 additions and 2 deletions

View file

@ -86,7 +86,7 @@ class FullNodesAdapter(private val context: Context) : RecyclerView.Adapter<Full
// Select correct color span according to the latency value
val colorSpan = when {
latency < 400 -> ForegroundColorSpan(ContextCompat.getColor(context, R.color.colorPrimary))
latency < 400 -> ForegroundColorSpan(ContextCompat.getColor(context, R.color.ppGreen))
latency < 800 -> ForegroundColorSpan(Color.rgb(255,136,0)) // Holo orange
else -> ForegroundColorSpan(Color.rgb(204,0,0)) // Holo red
}

View file

@ -5,6 +5,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/colorPrimary"
android:fillColor="@color/ppGreen"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM10,17l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z"/>
</vector>

View file

@ -9,6 +9,7 @@
<color name="black">#000</color>
<color name="gray">#888</color>
<color name="ppGreen">#139657</color>
<color name="lightGray">#e0e0e0</color>
<color name="darkGray">#616161</color>
<color name="colorReceive">#669900</color>