Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ private fun LiquidGlassTabItem(
lineHeight = 12.sp
),
color = if (isSelected) {
MaterialTheme.colorScheme.onPrimaryContainer
} else {
MaterialTheme.colorScheme.onSurface
} else {
MaterialTheme.colorScheme.onSurface.copy(alpha = .7f)
},
maxLines = 1
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ fun LiquidGlassCategoryChips(
category = category,
isSelected = category == selectedCategory,
onSelect = { onCategorySelected(category) },
isDarkTheme = isDarkTheme,
modifier = Modifier.weight(1f),
onPositioned = { x, width ->
itemPositions[index] = x to width
Expand All @@ -276,7 +275,6 @@ private fun LiquidGlassCategoryChip(
category: HomeCategory,
isSelected: Boolean,
onSelect: () -> Unit,
isDarkTheme: Boolean,
modifier: Modifier = Modifier,
onPositioned: suspend (x: Float, width: Float) -> Unit
) {
Expand All @@ -301,7 +299,7 @@ private fun LiquidGlassCategoryChip(

val textColor by animateColorAsState(
targetValue = if (isSelected) {
MaterialTheme.colorScheme.onPrimaryContainer
MaterialTheme.colorScheme.onSurface
} else {
MaterialTheme.colorScheme.onSurface.copy(alpha = .65f)
},
Expand Down