From 1077319797231ddd4c8f839a12800e9b638851dc Mon Sep 17 00:00:00 2001 From: Rebecca Franks Date: Sun, 7 Nov 2021 18:48:35 +0200 Subject: [PATCH] Fix #4 blend mode multiply not working on lower API versions. --- .../java/com/godaddy/android/colorpicker/SaturationValueArea.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/color-picker/src/main/java/com/godaddy/android/colorpicker/SaturationValueArea.kt b/color-picker/src/main/java/com/godaddy/android/colorpicker/SaturationValueArea.kt index 31b140e..4dd6c09 100644 --- a/color-picker/src/main/java/com/godaddy/android/colorpicker/SaturationValueArea.kt +++ b/color-picker/src/main/java/com/godaddy/android/colorpicker/SaturationValueArea.kt @@ -68,7 +68,7 @@ internal fun SaturationValueArea( } ) { drawRect(blackGradientBrush) - drawRect(currentColorGradientBrush, blendMode = BlendMode.Multiply) + drawRect(currentColorGradientBrush, blendMode = BlendMode.Modulate) drawRect(Color.Gray, style = Stroke(0.5.dp.toPx())) drawCircleSelector(currentColor)