aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-23 15:48:51 -0700
committerAllan Wang <me@allanwang.ca>2017-06-23 15:48:51 -0700
commit8c1ff3e546e205e85a0d7e7df0ca5d11bd167582 (patch)
tree17ef19103e51a0489d9f9974f780bc76802c6821 /app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
parent9cfccbe6cb3ddbf3fde55184fa484c82ebb4294b (diff)
downloadfrost-8c1ff3e546e205e85a0d7e7df0ca5d11bd167582.tar.gz
frost-8c1ff3e546e205e85a0d7e7df0ca5d11bd167582.tar.bz2
frost-8c1ff3e546e205e85a0d7e7df0ca5d11bd167582.zip
Start pro version
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.kt4
1 files changed, 2 insertions, 2 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 70205bc6..9322af3f 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
@@ -77,7 +77,7 @@ val Context.frostNotification: NotificationCompat.Builder
}
-fun Activity.materialDialogThemed(action: MaterialDialog.Builder.() -> Unit): MaterialDialog {
+fun Context.materialDialogThemed(action: MaterialDialog.Builder.() -> Unit): MaterialDialog {
val builder = MaterialDialog.Builder(this).theme()
builder.action()
return builder.show()
@@ -159,7 +159,7 @@ fun View.frostSnackbar(@StringRes text: Int, builder: Snackbar.() -> Unit = {})
messageView.setTextColor(Prefs.textColor)
actionView.setTextColor(Prefs.accentColor)
//only set if previous text colors are set
- view.setBackgroundColor(Prefs.bgColor.colorToForeground(0.1f))
+ view.setBackgroundColor(Prefs.bgColor.withAlpha(255).colorToForeground(0.1f))
}
show()
}