diff --git a/app/src/main/kotlin/dev/sanmer/mrepo/ui/component/MenuChip.kt b/app/src/main/kotlin/dev/sanmer/mrepo/ui/component/MenuChip.kt index c60794e3..26fbdf8a 100644 --- a/app/src/main/kotlin/dev/sanmer/mrepo/ui/component/MenuChip.kt +++ b/app/src/main/kotlin/dev/sanmer/mrepo/ui/component/MenuChip.kt @@ -4,8 +4,6 @@ import androidx.compose.foundation.Canvas import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.CircleShape -import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.Done import androidx.compose.material3.FilterChip import androidx.compose.material3.FilterChipDefaults import androidx.compose.material3.Icon @@ -14,8 +12,10 @@ import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color +import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp +import dev.sanmer.mrepo.R @Composable fun MenuChip( @@ -38,7 +38,7 @@ fun MenuChip( trailingIcon = { if (selected) { Icon( - imageVector = Icons.Filled.Done, + painter = painterResource(id = R.drawable.check), contentDescription = null, modifier = Modifier.size(FilterChipDefaults.IconSize) ) diff --git a/app/src/main/res/drawable/check.xml b/app/src/main/res/drawable/check.xml new file mode 100644 index 00000000..6133989a --- /dev/null +++ b/app/src/main/res/drawable/check.xml @@ -0,0 +1,12 @@ + + +