Skip to content

Commit 5abda29

Browse files
committed
[BOOK-473] chore: 고정 컬러값 및 if else 컬러 분기처리 다시 background Modifier로 원복
1 parent 4bd9d8e commit 5abda29

File tree

28 files changed

+29
-30
lines changed

28 files changed

+29
-30
lines changed

app/src/main/kotlin/com/ninecraft/booket/di/CircuitGraph.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface CircuitGraph {
4343
All uiFactories: ${circuit?.newBuilder()?.uiFactories}
4444
"""
4545
.trimIndent(),
46-
modifier = modifier.drawBehind { drawRect(Color.Red) },
46+
modifier = modifier.background(Color.Red),
4747
style = TextStyle(color = Color.Yellow),
4848
)
4949
}

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/RecordProgressBar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun RecordProgressBar(
3131
.weight(1f)
3232
.height(6.dp)
3333
.clip(RoundedCornerShape(ReedTheme.radius.full))
34-
.drawBehind { drawRect(bgColor) },
34+
.background(bgColor),
3535
)
3636
}
3737
}

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/checkbox/CircleCheckBox.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fun CircleCheckBox(
3838
modifier = modifier
3939
.size(24.dp)
4040
.clip(CircleShape)
41-
.drawBehind { drawRect(bgColor) }
41+
.background(bgColor)
4242
.border(1.dp, borderColor, CircleShape)
4343
.noRippleClickable { onCheckedChange(!checked) }
4444
.padding(2.dp),

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/checkbox/SquareCheckBox.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fun SquareCheckBox(
3838
modifier = modifier
3939
.size(24.dp)
4040
.clip(RoundedCornerShape(ReedTheme.radius.xs))
41-
.drawBehind { drawRect(bgColor) }
41+
.background(bgColor)
4242
.border(1.dp, borderColor, RoundedCornerShape(ReedTheme.radius.xs))
4343
.noRippleClickable { onCheckedChange(!checked) }
4444
.padding(2.dp),

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/textfield/ReedRecordTextField.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fun ReedRecordTextField(
8282
Row(
8383
modifier = modifier
8484
.clip(cornerShape)
85-
.drawBehind { drawRect(backgroundColor) }
85+
.background(backgroundColor)
8686
.border(
8787
border = if (isError) errorBorderStroke else borderStroke,
8888
shape = cornerShape,

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/textfield/ReedSearchTextField.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fun ReedTextField(
7979
Row(
8080
modifier = modifier
8181
.clip(cornerShape)
82-
.drawBehind { drawRect(backgroundColor) }
82+
.background(backgroundColor)
8383
.then(
8484
if (borderStroke != null) {
8585
Modifier.border(borderStroke, shape = cornerShape)

core/ui/src/main/kotlin/com/ninecraft/booket/core/ui/component/ReedFullScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun ReedFullScreen(
3131
Column(
3232
modifier = modifier
3333
.fillMaxSize()
34-
.drawBehind { drawRect(backgroundColor) }
34+
.background(backgroundColor)
3535
.systemBarsPadding()
3636
.clickable(
3737
indication = null,

core/ui/src/main/kotlin/com/ninecraft/booket/core/ui/component/ReedTopAppBar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fun ReedTopAppBar(
4343
modifier = modifier
4444
.fillMaxWidth()
4545
.height(60.dp)
46-
.drawBehind { drawRect(bgColor) }
46+
.background(bgColor)
4747
.padding(horizontal = ReedTheme.spacing.spacing2),
4848
horizontalArrangement = Arrangement.Start,
4949
verticalAlignment = Alignment.CenterVertically,

feature/detail/src/main/kotlin/com/ninecraft/booket/feature/detail/book/component/BookUpdateBottomSheet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fun RowScope.BookStatusItem(
137137
modifier = modifier
138138
.weight(1f)
139139
.clip(RoundedCornerShape(ReedTheme.radius.sm))
140-
.drawBehind { drawRect(bgColor) }
140+
.background(bgColor)
141141
.selectable(
142142
selected = selected,
143143
indication = null,

feature/detail/src/main/kotlin/com/ninecraft/booket/feature/detail/book/component/SeedItem.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal fun SeedItem(
4343
Box(
4444
modifier = Modifier
4545
.clip(RoundedCornerShape(ReedTheme.radius.full))
46-
.drawBehind { drawRect(emotion.name.bgColor) }
46+
.background(emotion.name.bgColor)
4747
.padding(
4848
horizontal = ReedTheme.spacing.spacing2,
4949
vertical = ReedTheme.spacing.spacing1,

0 commit comments

Comments
 (0)