Tweak background blur radius
This commit is contained in:
parent
fcac40c3cd
commit
69597a589b
@ -102,7 +102,7 @@ class LauncherActivity : AppCompatActivity() {
|
|||||||
if (!isAtLeastApiLevel(31)) return
|
if (!isAtLeastApiLevel(31)) return
|
||||||
window.attributes = window.attributes.also {
|
window.attributes = window.attributes.also {
|
||||||
if (value) {
|
if (value) {
|
||||||
it.blurBehindRadius = (16 * dp).toInt()
|
it.blurBehindRadius = (32 * dp).toInt()
|
||||||
it.flags = it.flags or WindowManager.LayoutParams.FLAG_BLUR_BEHIND
|
it.flags = it.flags or WindowManager.LayoutParams.FLAG_BLUR_BEHIND
|
||||||
} else {
|
} else {
|
||||||
it.blurBehindRadius = 0
|
it.blurBehindRadius = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user