Migrate to Landscapist v2.3.0

This commit is contained in:
Artem Chepurnoy 2024-02-11 22:17:50 +02:00
parent 02bfa3d038
commit 4440c67589
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
2 changed files with 10 additions and 4 deletions

View File

@ -18,6 +18,7 @@ import com.artemchep.keyguard.ui.theme.combineAlpha
import com.skydoves.landscapist.ImageOptions import com.skydoves.landscapist.ImageOptions
import com.skydoves.landscapist.components.rememberImageComponent import com.skydoves.landscapist.components.rememberImageComponent
import com.skydoves.landscapist.glide.GlideImage import com.skydoves.landscapist.glide.GlideImage
import com.skydoves.landscapist.placeholder.shimmer.Shimmer
import com.skydoves.landscapist.placeholder.shimmer.ShimmerPlugin import com.skydoves.landscapist.placeholder.shimmer.ShimmerPlugin
@Composable @Composable
@ -38,8 +39,10 @@ actual fun FaviconImage(
component = rememberImageComponent { component = rememberImageComponent {
// Shows a shimmering effect when loading an image // Shows a shimmering effect when loading an image
+ShimmerPlugin( +ShimmerPlugin(
baseColor = surfaceColor, shimmer = Shimmer.Flash(
highlightColor = highlightColor, baseColor = surfaceColor,
highlightColor = highlightColor,
),
) )
}, },
failure = { failure = {

View File

@ -19,6 +19,7 @@ import com.artemchep.keyguard.ui.theme.combineAlpha
import com.skydoves.landscapist.ImageOptions import com.skydoves.landscapist.ImageOptions
import com.skydoves.landscapist.components.rememberImageComponent import com.skydoves.landscapist.components.rememberImageComponent
import com.skydoves.landscapist.glide.GlideImage import com.skydoves.landscapist.glide.GlideImage
import com.skydoves.landscapist.placeholder.shimmer.Shimmer
import com.skydoves.landscapist.placeholder.shimmer.ShimmerPlugin import com.skydoves.landscapist.placeholder.shimmer.ShimmerPlugin
@Composable @Composable
@ -39,8 +40,10 @@ actual fun EmailIcon(
component = rememberImageComponent { component = rememberImageComponent {
// Shows a shimmering effect when loading an image // Shows a shimmering effect when loading an image
+ShimmerPlugin( +ShimmerPlugin(
baseColor = surfaceColor, shimmer = Shimmer.Flash(
highlightColor = highlightColor, baseColor = surfaceColor,
highlightColor = highlightColor,
),
) )
}, },
failure = { failure = {