From 1240e2663413b56c5b97c8ff40cb5c1bdc2df23b Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 19 Aug 2017 21:07:54 -0700 Subject: Add bottom bar layout --- app/src/main/kotlin/com/pitchedapps/frost/views/BadgedIcon.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views') 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) { -- cgit v1.2.3