Skip to content

Commit 83c4fa4

Browse files
authored
Merge pull request #310 from OpenHub-Store/ui-fix
2 parents 3bedc13 + 466c895 commit 83c4fa4

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

  • composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation
  • feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation/components

composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigation.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ private fun LiquidGlassTabItem(
385385
lineHeight = 12.sp
386386
),
387387
color = if (isSelected) {
388-
MaterialTheme.colorScheme.onPrimaryContainer
389-
} else {
390388
MaterialTheme.colorScheme.onSurface
389+
} else {
390+
MaterialTheme.colorScheme.onSurface.copy(alpha = .7f)
391391
},
392392
maxLines = 1
393393
)

feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation/components/HomeFilterChips.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ fun LiquidGlassCategoryChips(
252252
category = category,
253253
isSelected = category == selectedCategory,
254254
onSelect = { onCategorySelected(category) },
255-
isDarkTheme = isDarkTheme,
256255
modifier = Modifier.weight(1f),
257256
onPositioned = { x, width ->
258257
itemPositions[index] = x to width
@@ -276,7 +275,6 @@ private fun LiquidGlassCategoryChip(
276275
category: HomeCategory,
277276
isSelected: Boolean,
278277
onSelect: () -> Unit,
279-
isDarkTheme: Boolean,
280278
modifier: Modifier = Modifier,
281279
onPositioned: suspend (x: Float, width: Float) -> Unit
282280
) {
@@ -301,7 +299,7 @@ private fun LiquidGlassCategoryChip(
301299

302300
val textColor by animateColorAsState(
303301
targetValue = if (isSelected) {
304-
MaterialTheme.colorScheme.onPrimaryContainer
302+
MaterialTheme.colorScheme.onSurface
305303
} else {
306304
MaterialTheme.colorScheme.onSurface.copy(alpha = .65f)
307305
},

0 commit comments

Comments
 (0)