diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-16 16:48:19 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-16 16:48:19 -0700 |
commit | 0784fddafcee4759f25b7c27e1668d0996ab35e7 (patch) | |
tree | e53ae46ac1f648af0470d00b8b63a172a0a77f0a /app/src/main/kotlin/com/pitchedapps/frost/views | |
parent | 3b8631c1b584c287ab14536944488e14ce597170 (diff) | |
download | frost-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.kt | 4 |
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 } |