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:
parent
c4fd79f22c
commit
a96f3d0b77
3 changed files with 3 additions and 2 deletions
|
@ -86,7 +86,7 @@ class FullNodesAdapter(private val context: Context) : RecyclerView.Adapter<Full
|
||||||
|
|
||||||
// Select correct color span according to the latency value
|
// Select correct color span according to the latency value
|
||||||
val colorSpan = when {
|
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
|
latency < 800 -> ForegroundColorSpan(Color.rgb(255,136,0)) // Holo orange
|
||||||
else -> ForegroundColorSpan(Color.rgb(204,0,0)) // Holo red
|
else -> ForegroundColorSpan(Color.rgb(204,0,0)) // Holo red
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
android:viewportWidth="24.0"
|
android:viewportWidth="24.0"
|
||||||
android:viewportHeight="24.0">
|
android:viewportHeight="24.0">
|
||||||
<path
|
<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"/>
|
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>
|
</vector>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
<color name="black">#000</color>
|
<color name="black">#000</color>
|
||||||
<color name="gray">#888</color>
|
<color name="gray">#888</color>
|
||||||
|
<color name="ppGreen">#139657</color>
|
||||||
<color name="lightGray">#e0e0e0</color>
|
<color name="lightGray">#e0e0e0</color>
|
||||||
<color name="darkGray">#616161</color>
|
<color name="darkGray">#616161</color>
|
||||||
<color name="colorReceive">#669900</color>
|
<color name="colorReceive">#669900</color>
|
||||||
|
|
Loading…
Reference in a new issue