diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-02 17:24:17 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-02 17:24:17 -0700 |
commit | 4a07d2ed10741e08895c9e9f03738656ddfc33f9 (patch) | |
tree | 274a086986ef50d5f48ef3320cd397dcabce1fad /app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt | |
parent | b9aab92aee334acdffc6c0fde32101bb72be9a5e (diff) | |
download | frost-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.kt | 2 |
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) |