update haze usage

This commit is contained in:
Cuong-Tran 2025-03-01 00:44:07 +07:00
parent 73232c5364
commit b831349b37
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
2 changed files with 5 additions and 9 deletions

View file

@ -64,7 +64,7 @@ import androidx.compose.ui.util.fastAll
import androidx.compose.ui.util.fastAny
import androidx.compose.ui.util.fastMap
import dev.chrisbanes.haze.HazeState
import dev.chrisbanes.haze.haze
import dev.chrisbanes.haze.hazeSource
import eu.kanade.domain.source.service.SourcePreferences
import eu.kanade.domain.ui.UiPreferences
import eu.kanade.presentation.browse.RelatedMangaTitle
@ -572,9 +572,7 @@ private fun MangaScreenSmallImpl(
.onGloballyPositioned { coordinates ->
layoutSize = coordinates.size
}
.haze(
state = hazeState,
),
.hazeSource(state = hazeState),
// KMK <--
) { contentPadding ->
val topPadding = contentPadding.calculateTopPadding()
@ -1025,9 +1023,7 @@ private fun MangaScreenLargeImpl(
.onGloballyPositioned { coordinates ->
layoutSize = coordinates.size
}
.haze(
state = hazeState,
),
.hazeSource(state = hazeState),
// KMK <--
) { contentPadding ->
PullRefresh(

View file

@ -40,7 +40,7 @@ import com.materialkolor.ktx.blend
import dev.chrisbanes.haze.HazeDefaults
import dev.chrisbanes.haze.HazeState
import dev.chrisbanes.haze.HazeStyle
import dev.chrisbanes.haze.hazeChild
import dev.chrisbanes.haze.hazeEffect
import eu.kanade.core.util.ifSourcesLoaded
import eu.kanade.domain.manga.model.hasCustomCover
import eu.kanade.domain.manga.model.toSManga
@ -535,7 +535,7 @@ class MangaScreen(
onDismissRequest = onDismissRequest,
// KMK -->
modifier = Modifier
.hazeChild(
.hazeEffect(
state = hazeState,
style = HazeStyle(
backgroundColor = Color.Transparent,