Skip to content

Commit

Permalink
카테고리 수정하기 아이콘 비율 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leesa-l committed Dec 29, 2023
1 parent 1c3fd97 commit bd2ed0d
Showing 1 changed file with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,28 +130,29 @@ fun EditCategoryScreen(
LazyVerticalGrid(
modifier = Modifier.weight(1f),
columns = GridCells.Fixed(5),
horizontalArrangement = Arrangement.spacedBy(22.dp),
verticalArrangement = Arrangement.spacedBy(22.dp),
contentPadding = PaddingValues(vertical = 18.dp)
) {
items(categories) { category ->
val isSelected = category == selectedCategory
Box(
modifier = Modifier
.size(48.dp)
.background(color = ChevitTheme.colors.grey0, shape = CircleShape)
.border(
width = if (isSelected) 1.dp else (-1).dp,
color = ChevitTheme.colors.grey10,
shape = CircleShape,
Box(modifier = Modifier, contentAlignment = Alignment.Center) {
Box(
modifier = Modifier
.size(48.dp)
.background(color = ChevitTheme.colors.grey0, shape = CircleShape)
.border(
width = if (isSelected) 1.dp else (-1).dp,
color = ChevitTheme.colors.grey10,
shape = CircleShape,
)
.clickable { selectedCategory = category },
contentAlignment = Alignment.Center
) {
Image(
painter = painterResource(id = category.getCategoryIconResId()),
contentDescription = ""
)
.clickable { selectedCategory = category },
contentAlignment = Alignment.Center
) {
Image(
painter = painterResource(id = category.getCategoryIconResId()),
contentDescription = ""
)
}
}
}
}
Expand Down

0 comments on commit bd2ed0d

Please sign in to comment.