Skip to content

Commit

Permalink
Updated RSBlurShadow.kt rounded corners draw.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasyl Melnyk committed Jun 14, 2023
1 parent dda716f commit 7788045
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import androidx.compose.ui.geometry.center
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Outline
import androidx.compose.ui.graphics.Paint
import androidx.compose.ui.graphics.Path
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.graphics.asAndroidPath
import androidx.compose.ui.graphics.drawscope.drawIntoCanvas
Expand Down Expand Up @@ -179,13 +180,8 @@ fun Modifier.rsBlurShadow(
)
}
is Outline.Rounded -> {
canvas.drawRoundRect(
outline.roundRect.left,
outline.roundRect.top,
outline.roundRect.right,
outline.roundRect.bottom,
outline.roundRect.bottomLeftCornerRadius.x,
outline.roundRect.bottomLeftCornerRadius.y,
drawPath(
Path().apply { addRoundRect(outline.roundRect) }.asAndroidPath(),
paint
)
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ Created at [intive](https://intive.com).
[Basil Miller](https://www.linkedin.com/in/gigamole/)
[[email protected]](mailto:[email protected])

[![](/media/footer.png)](https://intive.com/careers)
[![](/media/footer.png)](https://intive.com/careers)
2 changes: 1 addition & 1 deletion plugins/src/main/java/ProjectConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.gradle.jvm.toolchain.JavaLanguageVersion

object ProjectConfig {
const val versionCode = 1
const val versionName = "1.0.0"
const val versionName = "1.0.1"

const val namespace = "com.gigamole.composeshadowsplus"
const val group = "com.github.GIGAMOLE"
Expand Down

0 comments on commit 7788045

Please sign in to comment.