From 60ddf413d677639d780e7b95516ecbce5406f8aa Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Tue, 17 Oct 2023 09:43:41 +0530 Subject: [PATCH] Use lerp functions when transforming plus path in `AllToPlus` icon --- .../dev/sasikanth/rss/reader/resources/icons/AllToPlus.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/icons/src/commonMain/kotlin/dev/sasikanth/rss/reader/resources/icons/AllToPlus.kt b/resources/icons/src/commonMain/kotlin/dev/sasikanth/rss/reader/resources/icons/AllToPlus.kt index b052fb0be..d975980e1 100644 --- a/resources/icons/src/commonMain/kotlin/dev/sasikanth/rss/reader/resources/icons/AllToPlus.kt +++ b/resources/icons/src/commonMain/kotlin/dev/sasikanth/rss/reader/resources/icons/AllToPlus.kt @@ -111,8 +111,8 @@ fun TwineIcons.allToPlus(progress: Float): ImageVector { pivotX = 12.0f, pivotY = 12.0f, ) { - val transformedMove = (5.0f + (12.0f - 5.0f) * (1.0f - progress)).coerceAtLeast(5.0f) - val transformedLine = 12.0f + (19.0f - 12.0f) * progress + val transformedMove = lerp(12.0f, 5.0f, progress) + val transformedLine = lerp(12.0f, 19.0f, progress) path( name = "plus_horizontal",