Skip to content

Commit b7c6bc2

Browse files
committed
library: Refactor ColorPicker Component
1 parent 230c5c6 commit b7c6bc2

File tree

2 files changed

+209
-140
lines changed

2 files changed

+209
-140
lines changed

composeApp/src/commonMain/kotlin/component/OtherComponent.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ fun OtherComponent(padding: PaddingValues) {
320320
modifier = Modifier
321321
.fillMaxWidth()
322322
.padding(horizontal = 12.dp)
323-
.padding(bottom = 12.dp),
323+
.padding(bottom = 6.dp),
324324
insideMargin = PaddingValues(16.dp)
325325
) {
326326
Column {
@@ -330,7 +330,7 @@ fun OtherComponent(padding: PaddingValues) {
330330
"${(selectedColor.green * 255).toInt()}," +
331331
"${(selectedColor.blue * 255).toInt()}," +
332332
"${(round(selectedColor.alpha * 100) / 100.0)})",
333-
modifier = Modifier.padding(bottom = 6.dp)
333+
modifier = Modifier.padding(bottom = 12.dp)
334334
)
335335

336336
ColorPicker(
@@ -370,5 +370,4 @@ fun OtherComponent(padding: PaddingValues) {
370370
style = MiuixTheme.textStyles.paragraph
371371
)
372372
}
373-
374373
}

0 commit comments

Comments
 (0)