Skip to content

Commit 7788045

Browse files
author
Vasyl Melnyk
committed
Updated RSBlurShadow.kt rounded corners draw.
1 parent dda716f commit 7788045

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

ComposeShadowsPlus/src/main/kotlin/com/gigamole/composeshadowsplus/rsblur/RSBlurShadow.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import androidx.compose.ui.geometry.center
2222
import androidx.compose.ui.graphics.Color
2323
import androidx.compose.ui.graphics.Outline
2424
import androidx.compose.ui.graphics.Paint
25+
import androidx.compose.ui.graphics.Path
2526
import androidx.compose.ui.graphics.Shape
2627
import androidx.compose.ui.graphics.asAndroidPath
2728
import androidx.compose.ui.graphics.drawscope.drawIntoCanvas
@@ -179,13 +180,8 @@ fun Modifier.rsBlurShadow(
179180
)
180181
}
181182
is Outline.Rounded -> {
182-
canvas.drawRoundRect(
183-
outline.roundRect.left,
184-
outline.roundRect.top,
185-
outline.roundRect.right,
186-
outline.roundRect.bottom,
187-
outline.roundRect.bottomLeftCornerRadius.x,
188-
outline.roundRect.bottomLeftCornerRadius.y,
183+
drawPath(
184+
Path().apply { addRoundRect(outline.roundRect) }.asAndroidPath(),
189185
paint
190186
)
191187
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ Created at [intive](https://intive.com).
107107
[Basil Miller](https://www.linkedin.com/in/gigamole/)
108108
[gigamole53@gmail.com](mailto:gigamole53@gmail.com)
109109

110-
[![](/media/footer.png)](https://intive.com/careers)
110+
[![](/media/footer.png)](https://intive.com/careers)

plugins/src/main/java/ProjectConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import org.gradle.jvm.toolchain.JavaLanguageVersion
55

66
object ProjectConfig {
77
const val versionCode = 1
8-
const val versionName = "1.0.0"
8+
const val versionName = "1.0.1"
99

1010
const val namespace = "com.gigamole.composeshadowsplus"
1111
const val group = "com.github.GIGAMOLE"

0 commit comments

Comments
 (0)