From a96f3d0b7745cdf20ba541317b2ca2ef3dc7ec0d Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Fri, 21 Dec 2018 21:55:17 -0600 Subject: [PATCH] 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. --- .../agorise/bitsybitshareswallet/adapters/FullNodesAdapter.kt | 2 +- app/src/main/res/drawable/ic_connected.xml | 2 +- app/src/main/res/values/colors.xml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/FullNodesAdapter.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/FullNodesAdapter.kt index b477898..ae46c79 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/FullNodesAdapter.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/FullNodesAdapter.kt @@ -86,7 +86,7 @@ class FullNodesAdapter(private val context: Context) : RecyclerView.Adapter 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 } diff --git a/app/src/main/res/drawable/ic_connected.xml b/app/src/main/res/drawable/ic_connected.xml index 800434a..6b3ae1a 100644 --- a/app/src/main/res/drawable/ic_connected.xml +++ b/app/src/main/res/drawable/ic_connected.xml @@ -5,6 +5,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 8231667..41ef6c5 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -9,6 +9,7 @@ #000 #888 + #139657 #e0e0e0 #616161 #669900