aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-08-19 21:07:54 -0700
committerAllan Wang <me@allanwang.ca>2017-08-19 21:07:54 -0700
commit1240e2663413b56c5b97c8ff40cb5c1bdc2df23b (patch)
tree33dd66313ce0dba5af72b2f4046313306850dbf9 /app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt
parentbf2168ee57ded706819d1e4f49d729d4f45e1d29 (diff)
downloadfrost-1240e2663413b56c5b97c8ff40cb5c1bdc2df23b.tar.gz
frost-1240e2663413b56c5b97c8ff40cb5c1bdc2df23b.tar.bz2
frost-1240e2663413b56c5b97c8ff40cb5c1bdc2df23b.zip
Add bottom bar layout
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt
index 8ae54ef3..c1015aad 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt
@@ -24,11 +24,11 @@ class BadgedIcon @JvmOverloads constructor(
init {
inflate(context, R.layout.view_badged_icon, this)
- val badgeColor = Prefs.headerColor.withAlpha(255).colorToForeground(0.2f)
+ val badgeColor = Prefs.mainActivityLayout.backgroundColor().withAlpha(255).colorToForeground(0.2f)
val badgeBackground = GradientDrawable(GradientDrawable.Orientation.BOTTOM_TOP, intArrayOf(badgeColor, badgeColor))
badgeBackground.cornerRadius = 13.dpToPx.toFloat()
badgeTextView.background = badgeBackground
- badgeTextView.setTextColor(Prefs.iconColor)
+ badgeTextView.setTextColor(Prefs.mainActivityLayout.iconColor())
}
@@ -36,7 +36,7 @@ class BadgedIcon @JvmOverloads constructor(
get() = field
set(value) {
field = value
- badgeImage.setImageDrawable(value?.toDrawable(context, color = Prefs.iconColor))
+ badgeImage.setImageDrawable(value?.toDrawable(context, color = Prefs.mainActivityLayout.iconColor()))
}
fun setAllAlpha(alpha: Float) {