From 8c6ba81f99f23979a7446f97af2f11a5cb468c1b Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Tue, 4 Oct 2022 03:08:11 +0200 Subject: [PATCH] Update: Replace Material icons with Phosphor in CategoryChips --- .../fdroid/ui/compose/components/CategoryChipList.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/CategoryChipList.kt b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/CategoryChipList.kt index cf5f9a25..681f8fe2 100644 --- a/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/CategoryChipList.kt +++ b/src/main/kotlin/com/machiav3lli/fdroid/ui/compose/components/CategoryChipList.kt @@ -17,8 +17,6 @@ import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.items import androidx.compose.foundation.selection.toggleable import androidx.compose.foundation.shape.RoundedCornerShape -import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.Done import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface @@ -35,6 +33,8 @@ import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.graphicsLayer import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp +import com.machiav3lli.fdroid.ui.compose.icons.Phosphor +import com.machiav3lli.fdroid.ui.compose.icons.phosphor.Check import com.machiav3lli.fdroid.ui.compose.utils.compositeOverBackground private enum class SelectionState { Unselected, Selected } @@ -114,7 +114,7 @@ fun CategoryChip( ) { AnimatedVisibility(visible = isSelected) { Icon( - imageVector = Icons.Filled.Done, + imageVector = Phosphor.Check, contentDescription = null, tint = MaterialTheme.colorScheme.onSurface, modifier = Modifier