Skip to content

Commit

Permalink
Fix issue with dp / px on magnifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Franks committed Jan 21, 2022
1 parent 9b1872f commit 26bc049
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal fun HarmonyColorMagnifiers(
)

val diameterDp = with(LocalDensity.current) {
Dp(this.density * diameterPx)
diameterPx.toDp()
}

val animatedDiameter = animateDpAsState(
Expand Down Expand Up @@ -62,6 +62,6 @@ private fun positionForColor(color: HsvColor, size: IntSize): Offset {
)
}

private const val diameterHarmonyColor = 0.015f
private const val diameterMainColorDragging = 0.022f
private const val diameterMainColor = 0.020f
private const val diameterHarmonyColor = 0.10f
private const val diameterMainColorDragging = 0.18f
private const val diameterMainColor = 0.15f

0 comments on commit 26bc049

Please sign in to comment.