aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-02 17:24:17 -0700
committerAllan Wang <me@allanwang.ca>2017-07-02 17:24:17 -0700
commit4a07d2ed10741e08895c9e9f03738656ddfc33f9 (patch)
tree274a086986ef50d5f48ef3320cd397dcabce1fad /app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
parentb9aab92aee334acdffc6c0fde32101bb72be9a5e (diff)
downloadfrost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.tar.gz
frost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.tar.bz2
frost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.zip
Adding auto uploads
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
index 6a99021d..b255c59c 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
@@ -106,7 +106,7 @@ fun Activity.setFrostTheme(forceTransparent: Boolean = false) {
fun Activity.setFrostColors(toolbar: Toolbar? = null, themeWindow: Boolean = true,
texts: Array<TextView> = arrayOf(), headers: Array<View> = arrayOf(), backgrounds: Array<View> = arrayOf()) {
statusBarColor = Prefs.headerColor.darken(0.1f).withAlpha(255)
- navigationBarColor = Prefs.headerColor
+ if (Prefs.tintNavBar) navigationBarColor = Prefs.headerColor
if (themeWindow) window.setBackgroundDrawable(ColorDrawable(Prefs.bgColor))
toolbar?.setBackgroundColor(Prefs.headerColor)
toolbar?.setTitleTextColor(Prefs.iconColor)