diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-06 02:52:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 02:52:18 -0400 |
commit | bbe30297a216218ded4c2c6e3e8c2843652eb7a7 (patch) | |
tree | d120e124cb12d5474d37f1bc3e67fdaa5179c4c3 /app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt | |
parent | 311c7eeb304048c31f986d2d06010d0a486555ad (diff) | |
download | frost-bbe30297a216218ded4c2c6e3e8c2843652eb7a7.tar.gz frost-bbe30297a216218ded4c2c6e3e8c2843652eb7a7.tar.bz2 frost-bbe30297a216218ded4c2c6e3e8c2843652eb7a7.zip |
Dev (#29) - micro fixes mostly from KAUv1.1.4
* Add changelog
* Add play descriptions
* Test build since tag
* Adjust view on keyboard, fixes
* Update kau, merge kpref singles, update swipe
* Fix swipe background
* Allow swipe customization
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 44a392b9..a3124dea 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt @@ -103,7 +103,7 @@ fun MaterialDialog.Builder.theme(): MaterialDialog.Builder { fun Activity.setFrostTheme(forceTransparent: Boolean = false) { val isTransparent = (Color.alpha(Prefs.bgColor) != 255) || forceTransparent - if (Prefs.bgColor.isColorDark()) + if (Prefs.bgColor.isColorDark) setTheme(if (isTransparent) R.style.FrostTheme_Transparent else R.style.FrostTheme) else setTheme(if (isTransparent) R.style.FrostTheme_Light_Transparent else R.style.FrostTheme_Light) |