File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ Or add the `HarmonyColorPicker` to your Compose hierarchy for an HSV color wheel
45
45
HarmonyColorPicker (
46
46
harmonyMode = harmonyMode.value,
47
47
modifier = Modifier .size(400 .dp),
48
- onValueChanged = { color ->
48
+ onColorChanged = { color ->
49
49
currentColor.value = color
50
- extraColors.value = HsvColor .from(hsvColor) .getColors(colorHarmonyMode = harmonyMode.value)
50
+ extraColors.value = color .getColors(colorHarmonyMode = harmonyMode.value)
51
51
})
52
52
```
53
53
@@ -100,7 +100,7 @@ To change the harmony mode of the picker, pass in a different mode into the func
100
100
HarmonyColorPicker (
101
101
harmonyMode = ColorHarmonyMode .SHADES ,
102
102
modifier = Modifier .size(400 .dp),
103
- onValueChanged = { color ->
103
+ onColorChanged = { color ->
104
104
// do stuff with new color
105
105
})
106
106
```
@@ -114,7 +114,7 @@ import com.godaddy.android.colorpicker.HsvColor
114
114
115
115
HarmonyColorPicker (
116
116
modifier = Modifier .height(200 .dp),
117
- onValueChanged = { color: Color ->
117
+ onColorChanged = { color: HsvColor ->
118
118
// Do something with the color
119
119
}
120
120
)
You can’t perform that action at this time.
0 commit comments