diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-10-26 17:25:13 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-10-26 17:25:13 -0700 |
| commit | 395aa7d1c312e495517701be11c21425d9a5838e (patch) | |
| tree | 4ad184b082838c56149cc1d1efe191cfd3d0679b /composeApp/src/commonMain/kotlin/coffee/liz/abstractionengine/ui/ArcadeButton.kt | |
| parent | 64f825465de9fa30c4dfe2707067efdb96110db8 (diff) | |
| download | abstraction-engine-kt-395aa7d1c312e495517701be11c21425d9a5838e.tar.gz abstraction-engine-kt-395aa7d1c312e495517701be11c21425d9a5838e.zip | |
Checkpoint
Diffstat (limited to 'composeApp/src/commonMain/kotlin/coffee/liz/abstractionengine/ui/ArcadeButton.kt')
| -rw-r--r-- | composeApp/src/commonMain/kotlin/coffee/liz/abstractionengine/ui/ArcadeButton.kt | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/composeApp/src/commonMain/kotlin/coffee/liz/abstractionengine/ui/ArcadeButton.kt b/composeApp/src/commonMain/kotlin/coffee/liz/abstractionengine/ui/ArcadeButton.kt deleted file mode 100644 index 9d50192..0000000 --- a/composeApp/src/commonMain/kotlin/coffee/liz/abstractionengine/ui/ArcadeButton.kt +++ /dev/null @@ -1,52 +0,0 @@ -package coffee.liz.abstractionengine.ui - -import androidx.compose.foundation.border -import androidx.compose.foundation.layout.PaddingValues -import androidx.compose.foundation.layout.size -import androidx.compose.foundation.shape.CircleShape -import androidx.compose.material3.Button -import androidx.compose.material3.ButtonDefaults -import androidx.compose.material3.MaterialTheme -import androidx.compose.material3.Text -import androidx.compose.runtime.Composable -import androidx.compose.ui.Modifier -import androidx.compose.ui.text.font.FontWeight -import androidx.compose.ui.unit.dp -import androidx.compose.ui.unit.sp - -enum class ArcadeButtonColor { - RED, YELLOW -} - -@Composable -fun ArcadeButton( - label: String, - color: ArcadeButtonColor = ArcadeButtonColor.RED, - onClick: () -> Unit, - modifier: Modifier = Modifier -) { - val buttonColor = when (color) { - ArcadeButtonColor.RED -> GameBoyColors.ButtonRed - ArcadeButtonColor.YELLOW -> GameBoyColors.ButtonYellow - } - - Button( - onClick = onClick, - modifier = modifier - .size(65.dp) - .border(1.dp, MaterialTheme.colorScheme.outline, CircleShape), - shape = CircleShape, - colors = ButtonDefaults.buttonColors( - containerColor = buttonColor, - contentColor = MaterialTheme.colorScheme.onPrimary - ), - contentPadding = PaddingValues(0.dp) - ) { - Text( - text = label, - fontSize = 20.sp, - fontWeight = FontWeight.Bold, - color = MaterialTheme.colorScheme.onPrimary - ) - } -} |
