Migrate to Landscapist v2.3.0
This commit is contained in:
parent
02bfa3d038
commit
4440c67589
|
@ -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 = {
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue