diff --git a/app/src/main/java/com/plainstudio/stackcasino/feature/lobby/LobbyScreen.kt b/app/src/main/java/com/plainstudio/stackcasino/feature/lobby/LobbyScreen.kt index 3c2ea60..d617d58 100644 --- a/app/src/main/java/com/plainstudio/stackcasino/feature/lobby/LobbyScreen.kt +++ b/app/src/main/java/com/plainstudio/stackcasino/feature/lobby/LobbyScreen.kt @@ -148,7 +148,7 @@ private fun SuccessContent( ) { LobbyHeader( user = data.user, - onOpenNotifications = { /* notifications sheet deferred */ }, + onOpenNotifications = {}, ) Divider() BalanceHero( @@ -537,6 +537,9 @@ private fun GameCard( fontWeight = FontWeight.SemiBold, ) Spacer(modifier = Modifier.height(8.dp)) + // alignByBaseline keeps the two labels typographically level + // even though the right side uses `tnum` digits that report + // slightly different line metrics than the plain-letter left. Row( modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween, @@ -546,6 +549,7 @@ private fun GameCard( color = TextLow, fontSize = SmallMetaFontSize, letterSpacing = TrackedLetterSpacing, + modifier = Modifier.alignByBaseline(), ) Text( text = card.infoRight.uppercase(), @@ -553,6 +557,7 @@ private fun GameCard( fontSize = SmallMetaFontSize, letterSpacing = TrackedLetterSpacing, style = TextStyle(fontFeatureSettings = "tnum"), + modifier = Modifier.alignByBaseline(), ) } } @@ -629,11 +634,16 @@ private fun CoinflipCard( letterSpacing = TrackedLetterSpacing, ) } + // Aligns with the subtitle line of the left column instead of + // the row centre so the meta label sits on the same baseline + // as X2 PAYOUT (mockup line 173 leaves both labels at the + // foot of the card). Text( text = card.infoRight.uppercase(), color = TextLow, fontSize = MetaFontSize, letterSpacing = TrackedLetterSpacing, + modifier = Modifier.align(Alignment.Bottom), ) } } @@ -1027,10 +1037,7 @@ private fun GameKey.iconRes(): Int = GameKey.Blackjack -> R.drawable.ic_game_blackjack GameKey.Crash -> R.drawable.ic_game_crash GameKey.Mines -> R.drawable.ic_game_mines - // Coinflip uses the inline "x2" badge in CoinflipCard instead of a - // drawable; this is dead for the grid path but kept to make the - // when-exhaustive contract honest. - GameKey.Coinflip -> R.drawable.ic_game_crash + GameKey.Coinflip -> R.drawable.ic_game_coinflip } private fun initialsOf(name: String): String { diff --git a/app/src/main/res/drawable/ic_game_coinflip.xml b/app/src/main/res/drawable/ic_game_coinflip.xml new file mode 100644 index 0000000..ab8bf43 --- /dev/null +++ b/app/src/main/res/drawable/ic_game_coinflip.xml @@ -0,0 +1,17 @@ + + + +