update haze usage
This commit is contained in:
parent
73232c5364
commit
b831349b37
2 changed files with 5 additions and 9 deletions
|
|
@ -64,7 +64,7 @@ import androidx.compose.ui.util.fastAll
|
||||||
import androidx.compose.ui.util.fastAny
|
import androidx.compose.ui.util.fastAny
|
||||||
import androidx.compose.ui.util.fastMap
|
import androidx.compose.ui.util.fastMap
|
||||||
import dev.chrisbanes.haze.HazeState
|
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.source.service.SourcePreferences
|
||||||
import eu.kanade.domain.ui.UiPreferences
|
import eu.kanade.domain.ui.UiPreferences
|
||||||
import eu.kanade.presentation.browse.RelatedMangaTitle
|
import eu.kanade.presentation.browse.RelatedMangaTitle
|
||||||
|
|
@ -572,9 +572,7 @@ private fun MangaScreenSmallImpl(
|
||||||
.onGloballyPositioned { coordinates ->
|
.onGloballyPositioned { coordinates ->
|
||||||
layoutSize = coordinates.size
|
layoutSize = coordinates.size
|
||||||
}
|
}
|
||||||
.haze(
|
.hazeSource(state = hazeState),
|
||||||
state = hazeState,
|
|
||||||
),
|
|
||||||
// KMK <--
|
// KMK <--
|
||||||
) { contentPadding ->
|
) { contentPadding ->
|
||||||
val topPadding = contentPadding.calculateTopPadding()
|
val topPadding = contentPadding.calculateTopPadding()
|
||||||
|
|
@ -1025,9 +1023,7 @@ private fun MangaScreenLargeImpl(
|
||||||
.onGloballyPositioned { coordinates ->
|
.onGloballyPositioned { coordinates ->
|
||||||
layoutSize = coordinates.size
|
layoutSize = coordinates.size
|
||||||
}
|
}
|
||||||
.haze(
|
.hazeSource(state = hazeState),
|
||||||
state = hazeState,
|
|
||||||
),
|
|
||||||
// KMK <--
|
// KMK <--
|
||||||
) { contentPadding ->
|
) { contentPadding ->
|
||||||
PullRefresh(
|
PullRefresh(
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ import com.materialkolor.ktx.blend
|
||||||
import dev.chrisbanes.haze.HazeDefaults
|
import dev.chrisbanes.haze.HazeDefaults
|
||||||
import dev.chrisbanes.haze.HazeState
|
import dev.chrisbanes.haze.HazeState
|
||||||
import dev.chrisbanes.haze.HazeStyle
|
import dev.chrisbanes.haze.HazeStyle
|
||||||
import dev.chrisbanes.haze.hazeChild
|
import dev.chrisbanes.haze.hazeEffect
|
||||||
import eu.kanade.core.util.ifSourcesLoaded
|
import eu.kanade.core.util.ifSourcesLoaded
|
||||||
import eu.kanade.domain.manga.model.hasCustomCover
|
import eu.kanade.domain.manga.model.hasCustomCover
|
||||||
import eu.kanade.domain.manga.model.toSManga
|
import eu.kanade.domain.manga.model.toSManga
|
||||||
|
|
@ -535,7 +535,7 @@ class MangaScreen(
|
||||||
onDismissRequest = onDismissRequest,
|
onDismissRequest = onDismissRequest,
|
||||||
// KMK -->
|
// KMK -->
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.hazeChild(
|
.hazeEffect(
|
||||||
state = hazeState,
|
state = hazeState,
|
||||||
style = HazeStyle(
|
style = HazeStyle(
|
||||||
backgroundColor = Color.Transparent,
|
backgroundColor = Color.Transparent,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue