Skip to content

Commit

Permalink
[MOD/#57] 컬러 팔레트 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
boiledEgg-s committed Jul 12, 2024
1 parent 2778b76 commit 363c9ed
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,20 @@ fun ColorPalette(
CalPink
)

val colorButton: @Composable (Color, Boolean, (Color) -> Unit) -> Unit = {
color: Color, isSelected: Boolean, onOptionSelected:(Color)-> Unit ->
ColorButton(color = color, isSelected = isSelected, onColorSelected = onOptionSelected)
}

RadioButtonGroups(
modifier = modifier.size(251.dp, 84.dp),
options = colorList,
gridCellCount = 5,
onOptionSelected = { color ->
Log.d("CalendarScreen","color: ${colorList.indexOf(color)}")
},
buttonComposable = colorButton,
buttonComposable = {
color, isSelected, onOptionSelected ->
ColorButton(
color = color,
isSelected = isSelected,
onColorSelected = onOptionSelected)
},
verticalArrangementSpace = 6.dp,
horizontalArrangementSpace = 14.dp,
)
Expand Down

0 comments on commit 363c9ed

Please sign in to comment.