Skip to content

Commit

Permalink
[FEAT/#20] IconChip border 추가 및 색상 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel4990 committed Jan 14, 2025
1 parent 2dc3010 commit 33a0c61
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.spoony.spoony.core.designsystem.component.tag

import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -44,6 +45,11 @@ fun IconChip(
.clip(RoundedCornerShape(12.dp))
.background(brush = backgroundBrush)
.clickable(onClick = onClick)
.border(
width = 1.dp,
color = SpoonyAndroidTheme.colors.gray100,
shape = RoundedCornerShape(12.dp)
)
.padding(
horizontal = 14.dp,
vertical = 6.dp
Expand Down Expand Up @@ -75,7 +81,7 @@ private fun getChipStyle(tagColor: TagChipColor, spoonyColor: SpoonyColors): Pai
end = Offset(Float.POSITIVE_INFINITY, 0f)
) to spoonyColor.white
TagChipColor.White ->
SolidColor(spoonyColor.white) to
SolidColor(spoonyColor.gray0) to
spoonyColor.gray600
TagChipColor.Main ->
SolidColor(spoonyColor.main400) to
Expand All @@ -95,7 +101,7 @@ private fun rememberChipStyle(tagColor: TagChipColor): Pair<Brush, Color> {
}
}

@Preview
@Preview(showBackground = true)
@Composable
private fun IconChipPreview() {
SpoonyAndroidTheme {
Expand Down

0 comments on commit 33a0c61

Please sign in to comment.