From 8c1ff3e546e205e85a0d7e7df0ca5d11bd167582 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 23 Jun 2017 15:48:51 -0700 Subject: Start pro version --- app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt') 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() } -- cgit v1.2.3