| Column( | |
| modifier = Modifier.fillMaxSize(), | |
| verticalArrangement = Arrangement.Center, | |
| horizontalAlignment = Alignment.CenterHorizontally | |
| ) { | |
| var ledStyle by remember { mutableStateOf(LedMatrixStyle()) } // initialize with the default style | |
| LedCounterDisplay( | |
| style = ledStyle | |
| ) | |
| ThemePicker( | |
| onOnColorPicked = { ledStyle = ledStyle.copy(onColor = it) }, | |
| onOffColorPicked = { ledStyle = ledStyle.copy(offColor = it) }, | |
| onShapePicked = { ledStyle = ledStyle.copy(ledShape = it) }, | |
| ) | |
| } |