Skip to content

Commit

Permalink
Merge pull request #47 from moertel/fix-brightness-slider
Browse files Browse the repository at this point in the history
Fix BrightnessSlider transparent background
  • Loading branch information
skydoves authored Dec 8, 2023
2 parents 190216f + 0559d43 commit c94da8b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ public fun BrightnessSlider(
canvas.drawImage(it, Offset.Zero, Paint())

// draw a linear gradient color shader.
val startColor = controller.pureSelectedColor.value.copy(alpha = 0f)
val endColor = controller.pureSelectedColor.value.copy(alpha = 1f)
val startColor = Color.Black
val endColor = controller.pureSelectedColor.value
val shader = LinearGradientShader(
colors = listOf(startColor, endColor),
from = Offset.Zero,
Expand Down

0 comments on commit c94da8b

Please sign in to comment.