Skip to content

Commit

Permalink
ANDROAPP-5453-make chip color lighter
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos authored Oct 17, 2023
2 parents d0bb091 + a4e8c9d commit f6234b8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.unit.IntOffset
import org.hisp.dhis.mobile.ui.designsystem.theme.Outline
import org.hisp.dhis.mobile.ui.designsystem.theme.Ripple
import org.hisp.dhis.mobile.ui.designsystem.theme.SurfaceColor
import org.hisp.dhis.mobile.ui.designsystem.theme.TextColor

@OptIn(ExperimentalMaterial3Api::class)
@Composable
Expand All @@ -37,12 +39,15 @@ fun Chip(
CompositionLocalProvider(LocalRippleTheme provides Ripple.CustomDHISRippleTheme) {
FilterChip(
onClick = { onSelected?.invoke(!selected) },
label = { Text(label) },
label = { Text(label, color = TextColor.OnSurfaceLight) },
selected = selected,
colors = FilterChipDefaults.filterChipColors(
containerColor = SurfaceColor.SurfaceBright,
selectedContainerColor = SurfaceColor.Container,
),
border = FilterChipDefaults.filterChipBorder(
borderColor = Outline.Medium,
),
leadingIcon = if (selected) {
{
Icon(
Expand Down

0 comments on commit f6234b8

Please sign in to comment.