Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22afd364 authored by tibbi's avatar tibbi
Browse files

add a helper function for getting the dialog theme

parent 6963ca21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.4.11'
        propVersionName = '3.4.12'
        kotlin_version = '1.2.10'
        support_libs = '27.0.2'
    }
+2 −0
Original line number Diff line number Diff line
@@ -309,3 +309,5 @@ fun Context.getSharedTheme(callback: (sharedTheme: SharedTheme?) -> Unit) {
        }
    }.start()
}

fun Context.getDialogTheme() = if (baseConfig.backgroundColor.getContrastColor() == Color.WHITE) R.style.MyDialogTheme_Dark else R.style.MyDialogTheme