Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
w2sv committed Jul 20, 2023
1 parent 300d360 commit 5292375
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.w2sv.common.enums.WidgetColor
import com.w2sv.wifiwidget.R
import com.w2sv.wifiwidget.ui.components.JostText
import com.w2sv.wifiwidget.ui.components.bulletPointText
import com.w2sv.wifiwidget.ui.utils.toColor

@Composable
internal fun ColorSelection(
Expand All @@ -41,7 +42,7 @@ internal fun ColorSelection(
value?.let {
ColorPickerDialog(
widgetSection = it,
appliedColor = Color(widgetColors.getValue(it)),
appliedColor = widgetColors.getValue(it).toColor(),
applyColor = { color ->
widgetColors[it] = color.toArgb()
},
Expand All @@ -59,7 +60,7 @@ internal fun ColorSelection(
WidgetColor.values().forEach {
SectionCustomizationRow(
widgetColor = it,
color = Color(widgetColors.getValue(it)),
color = widgetColors.getValue(it).toColor(),
onClick = { showDialogFor = it },
modifier = Modifier.padding(vertical = 4.dp)
)
Expand Down

0 comments on commit 5292375

Please sign in to comment.