mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 19:57:04 +05:30
common: fix desktop deprecations
This commit is contained in:
parent
00b29d7425
commit
83e487e8fc
2 changed files with 6 additions and 6 deletions
|
@ -1,11 +1,11 @@
|
||||||
package dev.msfjarvis.claw.common.res
|
package dev.msfjarvis.claw.common.res
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.res.svgResource
|
import androidx.compose.ui.res.painterResource
|
||||||
|
|
||||||
actual val commentIcon
|
actual val commentIcon
|
||||||
@Composable get() = svgResource("comment_black_24px.svg")
|
@Composable get() = painterResource("comment_black_24px.svg")
|
||||||
actual val heartIcon
|
actual val heartIcon
|
||||||
@Composable get() = svgResource("favorite_black_24px.svg")
|
@Composable get() = painterResource("favorite_black_24px.svg")
|
||||||
actual val heartBorderIcon
|
actual val heartBorderIcon
|
||||||
@Composable get() = svgResource("favorite_border_black_24px.svg")
|
@Composable get() = painterResource("favorite_border_black_24px.svg")
|
||||||
|
|
|
@ -3,7 +3,7 @@ package dev.msfjarvis.claw.common.ui
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import io.kamel.image.KamelImage
|
import io.kamel.image.KamelImage
|
||||||
import io.kamel.image.lazyImageResource
|
import io.kamel.image.lazyPainterResource
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
actual fun NetworkImage(
|
actual fun NetworkImage(
|
||||||
|
@ -12,7 +12,7 @@ actual fun NetworkImage(
|
||||||
modifier: Modifier,
|
modifier: Modifier,
|
||||||
) {
|
) {
|
||||||
KamelImage(
|
KamelImage(
|
||||||
resource = lazyImageResource(url),
|
resource = lazyPainterResource(url),
|
||||||
contentDescription = contentDescription,
|
contentDescription = contentDescription,
|
||||||
modifier = Modifier.then(modifier),
|
modifier = Modifier.then(modifier),
|
||||||
crossfade = true,
|
crossfade = true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue