@@ -45,11 +45,6 @@ import androidx.compose.ui.hapticfeedback.HapticFeedbackType
4545import androidx.compose.ui.platform.LocalHapticFeedback
4646import androidx.compose.ui.platform.LocalUriHandler
4747import androidx.compose.ui.unit.dp
48- import dev.chrisbanes.haze.HazeState
49- import dev.chrisbanes.haze.HazeStyle
50- import dev.chrisbanes.haze.HazeTint
51- import dev.chrisbanes.haze.hazeEffect
52- import dev.chrisbanes.haze.hazeSource
5348import kotlinx.coroutines.launch
5449import top.yukonga.miuix.kmp.basic.FabPosition
5550import top.yukonga.miuix.kmp.basic.FloatingActionButton
@@ -123,12 +118,6 @@ fun UITest(
123118 var uiState by remember { mutableStateOf(UIState ()) }
124119 val showTopPopup = remember { mutableStateOf(false ) }
125120
126- val hazeState = remember { HazeState () }
127- val hazeStyle = HazeStyle (
128- backgroundColor = MiuixTheme .colorScheme.background,
129- tint = HazeTint (MiuixTheme .colorScheme.background.copy(0.67f ))
130- )
131-
132121 val uriHandler = LocalUriHandler .current
133122
134123 Scaffold (
@@ -165,13 +154,6 @@ fun UITest(
165154 exit = fadeOut() + shrinkVertically(shrinkTowards = Alignment .Top )
166155 ) {
167156 NavigationBar (
168- modifier = Modifier
169- .hazeEffect(hazeState) {
170- style = hazeStyle
171- blurRadius = 25 .dp
172- noiseFactor = 0f
173- },
174- color = Color .Transparent ,
175157 items = navigationItem,
176158 selected = selectedPage,
177159 onClick = { index ->
@@ -188,13 +170,6 @@ fun UITest(
188170 exit = fadeOut() + shrinkVertically(shrinkTowards = Alignment .Top )
189171 ) {
190172 FloatingNavigationBar (
191- modifier = Modifier
192- .hazeEffect(hazeState) {
193- style = hazeStyle
194- blurRadius = 25 .dp
195- noiseFactor = 0f
196- },
197- color = Color .Transparent ,
198173 items = navigationItem,
199174 selected = selectedPage,
200175 mode = when (uiState.floatingNavigationBarMode) {
@@ -244,17 +219,7 @@ fun UITest(
244219 enter = fadeIn(),
245220 exit = fadeOut()
246221 ) {
247- val floatingToolbarBgColor = MiuixTheme .colorScheme.primary
248222 FloatingToolbar (
249- modifier = Modifier
250- .hazeEffect(hazeState) {
251- style = HazeStyle (
252- backgroundColor = floatingToolbarBgColor,
253- tint = HazeTint (floatingToolbarBgColor.copy(0.67f ))
254- )
255- blurRadius = 25 .dp
256- noiseFactor = 0f
257- },
258223 color = Color .Transparent ,
259224 cornerRadius = 20 .dp
260225 ) {
@@ -314,7 +279,6 @@ fun UITest(
314279 AppHorizontalPager (
315280 modifier = Modifier
316281 .imePadding()
317- .hazeSource(state = hazeState)
318282 .windowInsetsPadding(WindowInsets .displayCutout.only(WindowInsetsSides .Horizontal ))
319283 .windowInsetsPadding(WindowInsets .navigationBars.only(WindowInsetsSides .Horizontal )),
320284 pagerState = pagerState,
0 commit comments