diff --git a/composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigation.kt b/composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigation.kt index 54afcfee0..7b5ff8dca 100644 --- a/composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigation.kt +++ b/composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigation.kt @@ -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 ) diff --git a/feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation/components/HomeFilterChips.kt b/feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation/components/HomeFilterChips.kt index 66c194cb2..e871cfe4f 100644 --- a/feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation/components/HomeFilterChips.kt +++ b/feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation/components/HomeFilterChips.kt @@ -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 @@ -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 ) { @@ -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) },