Skip to content

Commit 1e22cd1

Browse files
committed
[refactor]: RoleCard RoundCornerShape 통일 및 밝기 수정(#26)
1 parent 435a60c commit 1e22cd1

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

app/src/main/java/com/texthip/thip/ui/myPage/component/RoleCard.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ fun RoleCard(
5252
val backgroundBrush = if (selected) {
5353
Brush.verticalGradient(
5454
colors = listOf(
55-
Color.Black.copy(alpha = 0.6f), //상단은 어둡게
56-
Color.White.copy(alpha = 0.3f) //하단은 밝게
55+
Color.Black.copy(alpha = 0.7f), //상단은 어둡게
56+
Color.White.copy(alpha = 0.2f) //하단은 밝게
5757
)
5858
)
5959
} else {
@@ -64,11 +64,11 @@ fun RoleCard(
6464
.width(162.dp)
6565
.height(100.dp)
6666
.clip(RoundedCornerShape(12.dp))
67-
.background(brush = backgroundBrush, shape = RoundedCornerShape(16.dp))
67+
.background(brush = backgroundBrush, shape = RoundedCornerShape(12.dp))
6868
.border(
6969
width = 1.dp,
7070
color = borderColor,
71-
shape = RoundedCornerShape(16.dp)
71+
shape = RoundedCornerShape(12.dp)
7272
)
7373
.clickable { onClick() }
7474
) {
@@ -101,7 +101,7 @@ fun RoleCard(
101101
}
102102
}
103103

104-
@Preview(showBackground = true, backgroundColor = 0xFF000000)
104+
@Preview(showBackground = true, backgroundColor = 0xFF121212)
105105
@Composable
106106
fun RoleCardPreview() {
107107
var selected1 by rememberSaveable { mutableStateOf(true) }

app/src/main/java/com/texthip/thip/ui/theme/Color.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ val DarkGrey = Color(0xFF3D3D3D)
3737
val DarkGrey50 = Color(0x803D3D3D)
3838
val DarkGrey02 = Color(0xFF282828)
3939
val DarkGrey01 = Color(0x4B4B4B4B)
40-
4140
val Black = Color(0xFF121212)
4241
val Black50 = Color(0x80121212)
4342
val Black10 = Color(0x1A121212)

0 commit comments

Comments
 (0)