unblockjam: (refactor) update corner radius for game elements I also tried redoing various parts of the UI, but it was about as fun as building CSS flexboxes with arbiturary dimensions
- Commit
ebd9bc904f74241f3fad2317cd55a1b3cc6f4ada- Author
- Anonymous <[email protected]>
- When
- 2026-03-16 12:14 UTC (8 months ago)
- Parents
98147cd
Diff
games/unblockjam/src/main/java/com/vayunmathur/games/unblockjam/MainActivity.kt
diff --git a/games/unblockjam/src/main/java/com/vayunmathur/games/unblockjam/MainActivity.kt b/games/unblockjam/src/main/java/com/vayunmathur/games/unblockjam/MainActivity.ktindex ddad070b67..9b14e05df2 100644--- a/games/unblockjam/src/main/java/com/vayunmathur/games/unblockjam/MainActivity.kt+++ b/games/unblockjam/src/main/java/com/vayunmathur/games/unblockjam/MainActivity.kt@@ -317,7 +317,7 @@ fun MovesInfoBox(moves: Int, bestScore: Int?, optimalMoves: Int) { fun InfoBox(title: String, content: @Composable () -> Unit) { Surface( modifier = Modifier.size(width = 150.dp, height = 120.dp),- shape = RoundedCornerShape(8.dp),+ shape = RoundedCornerShape(12.dp), ) { Column( modifier = Modifier.padding(8.dp),@@ -353,7 +353,7 @@ fun GameBoard( Box( modifier = Modifier .size(boardSize)- .background(MaterialTheme.colorScheme.primary, shape = RoundedCornerShape(8.dp))+ .background(MaterialTheme.colorScheme.primary, shape = RoundedCornerShape(12.dp)) ) { @@ -387,7 +387,7 @@ fun GameBoard( .size(blockWidth, blockHeight) .offset { IntOffset(currentOffsetX.roundToPx(), offsetY.roundToPx()) } .padding(4.dp)- .background(color, shape = RoundedCornerShape(4.dp))+ .background(color, shape = RoundedCornerShape(8.dp)) .pointerInput(block, levelData, isLevelWon) { if (isLevelWon) return@pointerInput