Skip to content

Commit cd033e2

Browse files
committed
Update readme, including fixing bad documentation
1 parent fedffd9 commit cd033e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ Or add the `HarmonyColorPicker` to your Compose hierarchy for an HSV color wheel
4545
HarmonyColorPicker(
4646
harmonyMode = harmonyMode.value,
4747
modifier = Modifier.size(400.dp),
48-
onValueChanged = { color ->
48+
onColorChanged = { color ->
4949
currentColor.value = color
50-
extraColors.value = HsvColor.from(hsvColor).getColors(colorHarmonyMode = harmonyMode.value)
50+
extraColors.value = color.getColors(colorHarmonyMode = harmonyMode.value)
5151
})
5252
```
5353

@@ -100,7 +100,7 @@ To change the harmony mode of the picker, pass in a different mode into the func
100100
HarmonyColorPicker(
101101
harmonyMode = ColorHarmonyMode.SHADES,
102102
modifier = Modifier.size(400.dp),
103-
onValueChanged = { color ->
103+
onColorChanged = { color ->
104104
// do stuff with new color
105105
})
106106
```
@@ -114,7 +114,7 @@ import com.godaddy.android.colorpicker.HsvColor
114114

115115
HarmonyColorPicker(
116116
modifier = Modifier.height(200.dp),
117-
onValueChanged = { color: Color ->
117+
onColorChanged = { color: HsvColor ->
118118
// Do something with the color
119119
}
120120
)

0 commit comments

Comments
 (0)