@@ -26,8 +26,6 @@ import androidx.compose.runtime.staticCompositionLocalOf
2626import androidx.compose.ui.Modifier
2727import androidx.compose.ui.graphics.Color
2828import androidx.compose.ui.graphics.RectangleShape
29- import androidx.compose.ui.platform.LocalDensity
30- import androidx.compose.ui.unit.dp
3129import fontweighttest.shared.generated.resources.Res
3230import fontweighttest.shared.generated.resources.home
3331import fontweighttest.shared.generated.resources.monospace
@@ -56,7 +54,7 @@ import top.yukonga.miuix.kmp.basic.ScrollBehavior
5654import top.yukonga.miuix.kmp.blur.BlendColorEntry
5755import top.yukonga.miuix.kmp.blur.BlurColors
5856import top.yukonga.miuix.kmp.blur.LayerBackdrop
59- import top.yukonga.miuix.kmp.blur.isRenderEffectSupported
57+ import top.yukonga.miuix.kmp.blur.isRuntimeShaderSupported
6058import top.yukonga.miuix.kmp.blur.layerBackdrop
6159import top.yukonga.miuix.kmp.blur.rememberLayerBackdrop
6260import top.yukonga.miuix.kmp.blur.textureBlur
@@ -94,7 +92,7 @@ fun App(
9492 LocalMainPagerState provides mainPagerState,
9593 ) {
9694 val page by remember { derivedStateOf { pagerState.targetPage } }
97- val blurSupported = isRenderEffectSupported ()
95+ val blurSupported = isRuntimeShaderSupported ()
9896 Scaffold (
9997 modifier = Modifier .fillMaxSize(),
10098 bottomBar = {
@@ -104,7 +102,6 @@ fun App(
104102 Modifier
105103 .textureBlur(
106104 backdrop = backdrop,
107- blurRadius = 25f * LocalDensity .current.density,
108105 shape = RectangleShape ,
109106 colors = BlurColors (
110107 blendColors = listOf (
0 commit comments