diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-24 19:12:25 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-04-24 19:12:25 -0700 |
commit | 7e227078373adf0ef8c243b7e1e05804524cd3ea (patch) | |
tree | bd6585c85a7641555e4bd9c10fa919145a5ba6df /app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt | |
parent | 9df2a878226fb5f7adcf1af61a1ce87dff826fbc (diff) | |
download | frost-7e227078373adf0ef8c243b7e1e05804524cd3ea.tar.gz frost-7e227078373adf0ef8c243b7e1e05804524cd3ea.tar.bz2 frost-7e227078373adf0ef8c243b7e1e05804524cd3ea.zip |
Add click events to notifications
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 711d7e18..76ffd8cd 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt @@ -186,7 +186,7 @@ fun MaterialDialog.Builder.theme(): MaterialDialog.Builder { } fun Activity.setFrostTheme(forceTransparent: Boolean = false) { - val isTransparent = (Color.alpha(Prefs.bgColor) != 255) || forceTransparent + val isTransparent = (Color.alpha(Prefs.bgColor) != 255) || (Color.alpha(Prefs.headerColor) != 255) || forceTransparent if (Prefs.bgColor.isColorDark) setTheme(if (isTransparent) R.style.FrostTheme_Transparent else R.style.FrostTheme) else |