aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-16 16:48:19 -0700
committerAllan Wang <me@allanwang.ca>2017-06-16 16:48:19 -0700
commit0784fddafcee4759f25b7c27e1668d0996ab35e7 (patch)
treee53ae46ac1f648af0470d00b8b63a172a0a77f0a /app/src/main/kotlin/com/pitchedapps/frost/views
parent3b8631c1b584c287ab14536944488e14ce597170 (diff)
downloadfrost-0784fddafcee4759f25b7c27e1668d0996ab35e7.tar.gz
frost-0784fddafcee4759f25b7c27e1668d0996ab35e7.tar.bz2
frost-0784fddafcee4759f25b7c27e1668d0996ab35e7.zip
Add more theming
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
index 244c1388..eb804a53 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/AccountItem.kt
@@ -20,6 +20,7 @@ import com.mikepenz.google_material_typeface_library.GoogleMaterial
import com.pitchedapps.frost.R
import com.pitchedapps.frost.dbflow.CookieModel
import com.pitchedapps.frost.facebook.PROFILE_PICTURE_URL
+import com.pitchedapps.frost.utils.Prefs
/**
* Created by Allan Wang on 2017-06-05.
@@ -36,6 +37,7 @@ class AccountItem(val cookie: CookieModel?) : AbstractItem<AccountItem, AccountI
super.bindView(viewHolder, payloads)
with(viewHolder) {
text.visibility = View.INVISIBLE
+ text.setTextColor(Prefs.textColor)
if (cookie != null) {
text.text = cookie.name
val options = RequestOptions().transform(CircleCrop())
@@ -52,7 +54,7 @@ class AccountItem(val cookie: CookieModel?) : AbstractItem<AccountItem, AccountI
}).into(image)
} else {
text.visibility = View.VISIBLE
- image.setImageDrawable(GoogleMaterial.Icon.gmd_add_circle_outline.toDrawable(itemView.context, 100))
+ image.setImageDrawable(GoogleMaterial.Icon.gmd_add_circle_outline.toDrawable(itemView.context, 100, Prefs.textColor))
text.text = itemView.context.getString(R.string.add_account)
//todo add plus image
}