From 0a14db195c7221f03a40e07852ed4e4352654c0d Mon Sep 17 00:00:00 2001 From: "Boin Seo, George" <58923717+vvvvvoin@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:49:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EB=B8=94=EB=9D=BD=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=ED=95=98=EC=9D=B4=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=ED=8C=85=20=EC=B6=94=EA=B0=80=20(#68)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 721075db..e2dbfe6a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ minSdk = 21 jitpack 저장소에 배포되어 있어, 저장소를 추가해야합니다. -``` +```groovy // build.gradle (:project) allprojects { repositories { @@ -24,7 +24,7 @@ allprojects { 만약 kts라면 다음과 같이 설정해주세요. -``` +```kotlin // build.gradle.kts (:project) allprojects { repositories { @@ -38,7 +38,7 @@ allprojects { 모듈 단위의 build.gradle에 의존성을 추가합니다. -``` +```groovy // build.gradle (:app) dependencies { implementation 'com.github.channel-io:bezier-compose:bezier_compose_version' @@ -47,7 +47,7 @@ dependencies { 만약 kts라면 다음과 같이 설정해주세요. -``` +```kotlin // build.gradle.kts (:app) dependencies { implementation("com.github.channel-io:bezier-compose:$bezier_compose_version") From 8b86a3725726c4c977e55ef4e6fb6944f50e6bd0 Mon Sep 17 00:00:00 2001 From: ch-builder <61870096+ch-builder@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:12:45 +0900 Subject: [PATCH 2/2] Update bezier icon bezier asset main (#70) --- .../main/java/io/channel/bezier/icon/Alf.kt | 149 ++++++++++++++++++ .../java/io/channel/bezier/icon/BlockSmall.kt | 63 ++++++++ bezier/src/main/res/drawable/icon_alf.xml | 10 ++ .../main/res/drawable/icon_block_small.xml | 10 ++ 4 files changed, 232 insertions(+) create mode 100644 bezier/src/main/java/io/channel/bezier/icon/Alf.kt create mode 100644 bezier/src/main/java/io/channel/bezier/icon/BlockSmall.kt create mode 100644 bezier/src/main/res/drawable/icon_alf.xml create mode 100644 bezier/src/main/res/drawable/icon_block_small.xml diff --git a/bezier/src/main/java/io/channel/bezier/icon/Alf.kt b/bezier/src/main/java/io/channel/bezier/icon/Alf.kt new file mode 100644 index 00000000..21c921c8 --- /dev/null +++ b/bezier/src/main/java/io/channel/bezier/icon/Alf.kt @@ -0,0 +1,149 @@ +@file:Suppress("ObjectPropertyName", "UnusedReceiverParameter") + +// Auto-generated by script/generate_compose_bezier_icon.py + +package io.channel.bezier.icon + +import androidx.compose.foundation.layout.size +import androidx.compose.material.Icon +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.graphics.vector.path +import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp +import io.channel.bezier.BezierIcon +import io.channel.bezier.BezierIcons + +val BezierIcons.Alf: BezierIcon + get() = object : BezierIcon { + override val imageVector: ImageVector + get() = _alf ?: ImageVector.Builder( + name = "Alf", + defaultWidth = 24.dp, + defaultHeight = 24.dp, + viewportWidth = 24f, + viewportHeight = 24f, + ).apply { + path( + fill = SolidColor(Color(0xFF313234)), + strokeLineWidth = 1f, + pathFillType = PathFillType.EvenOdd, + ) { + moveTo(2.436f, 6.184f) + curveTo(2.0f, 7.04f, 2.0f, 8.16f, 2.0f, 10.4f) + lineTo(2.0f, 13.600000000000001f) + curveTo(2.0f, 15.840000000000002f, 2.0f, 16.96f, 2.436f, 17.816000000000003f) + arcTo(4.0f, 4.0f, 152.99931737283205f, isMoreThanHalf = false, isPositiveArc = false, 4.184f, 19.564000000000004f) + curveTo(5.04f, 20.0f, 6.16f, 20.0f, 8.4f, 20.0f) + lineTo(15.600000000000001f, 20.0f) + curveTo(17.840000000000003f, 20.0f, 18.96f, 20.0f, 19.816000000000003f, 19.564f) + arcTo(4.0f, 4.0f, 62.99931737283203f, isMoreThanHalf = false, isPositiveArc = false, 21.564000000000004f, 17.816f) + curveTo(22.0f, 16.96f, 22.0f, 15.84f, 22.0f, 13.6f) + lineTo(22.0f, 10.399999999999999f) + curveTo(22.0f, 8.159999999999998f, 22.0f, 7.039999999999999f, 21.564f, 6.183999999999998f) + arcTo(4.0f, 4.0f, 332.999317372832f, isMoreThanHalf = false, isPositiveArc = false, 19.816f, 4.435999999999998f) + curveTo(18.96f, 4.0f, 17.84f, 4.0f, 15.6f, 4.0f) + lineTo(8.4f, 4.0f) + curveTo(6.16f, 4.0f, 5.040000000000001f, 4.0f, 4.184f, 4.436f) + arcTo(4.0f, 4.0f, 242.99931737283202f, isMoreThanHalf = false, isPositiveArc = false, 2.436f, 6.184f) + moveTo(5.609f, 7.857f) + arcTo(0.444f, 0.444f, 191.29993381378256f, isMoreThanHalf = false, isPositiveArc = true, 6.045f, 7.5f) + lineTo(7.983f, 7.5f) + curveTo(8.193999999999999f, 7.5f, 8.376999999999999f, 7.65f, 8.418f, 7.857f) + lineTo(10.017999999999999f, 15.857f) + arcTo(0.444f, 0.444f, 348.56838023091865f, isMoreThanHalf = false, isPositiveArc = true, 9.582999999999998f, 16.389f) + lineTo(8.71f, 16.389f) + arcTo(0.444f, 0.444f, 89.92167108242175f, isMoreThanHalf = false, isPositiveArc = true, 8.274000000000001f, 16.032f) + lineTo(7.990000000000001f, 14.612f) + lineTo(6.036f, 14.612f) + lineTo(5.752f, 16.032f) + arcTo(0.444f, 0.444f, 11.299933813782715f, isMoreThanHalf = false, isPositiveArc = true, 5.316f, 16.389f) + lineTo(4.445f, 16.389f) + arcTo(0.444f, 0.444f, 89.8957013553716f, isMoreThanHalf = false, isPositiveArc = true, 4.009f, 15.857f) + close() + moveTo(7.636f, 12.833f) + lineTo(7.014f, 9.723f) + lineTo(6.391f, 12.833f) + close() + moveTo(11.062f, 7.743f) + curveTo(11.014f, 7.838f, 11.014f, 7.963f, 11.014f, 8.211f) + lineTo(11.014f, 15.678f) + curveTo(11.014f, 15.927000000000001f, 11.014f, 16.051000000000002f, 11.062f, 16.146f) + curveTo(11.104999999999999f, 16.23f, 11.171999999999999f, 16.298000000000002f, 11.256f, 16.341f) + curveTo(11.351f, 16.389f, 11.476f, 16.389f, 11.725f, 16.389f) + lineTo(12.08f, 16.389f) + curveTo(12.219f, 16.389f, 12.318f, 16.389f, 12.396f, 16.381f) + curveTo(12.474f, 16.389f, 12.573f, 16.389f, 12.711f, 16.389f) + lineTo(13.956f, 16.389f) + curveTo(14.203999999999999f, 16.389f, 14.328999999999999f, 16.389f, 14.424f, 16.34f) + arcTo(0.44f, 0.44f, 63.16591975573476f, isMoreThanHalf = false, isPositiveArc = false, 14.618f, 16.146f) + curveTo(14.667f, 16.051000000000002f, 14.667f, 15.926f, 14.667f, 15.678f) + lineTo(14.667f, 15.322000000000001f) + curveTo(14.667f, 15.073f, 14.667f, 14.949000000000002f, 14.618f, 14.854000000000001f) + arcTo(0.44f, 0.44f, 333.1659197557346f, isMoreThanHalf = false, isPositiveArc = false, 14.424f, 14.66f) + curveTo(14.328999999999999f, 14.611f, 14.203999999999999f, 14.611f, 13.956f, 14.611f) + lineTo(12.79f, 14.611f) + lineTo(12.79f, 8.211f) + curveTo(12.79f, 7.962000000000001f, 12.79f, 7.838f, 12.741999999999999f, 7.743f) + arcTo(0.44f, 0.44f, 333.1659197557344f, isMoreThanHalf = false, isPositiveArc = false, 12.547999999999998f, 7.549f) + curveTo(12.452999999999998f, 7.5f, 12.327999999999998f, 7.5f, 12.078999999999999f, 7.5f) + lineTo(11.723999999999998f, 7.5f) + curveTo(11.473999999999998f, 7.5f, 11.349999999999998f, 7.5f, 11.254999999999999f, 7.549f) + arcTo(0.44f, 0.44f, 243.16591975573465f, isMoreThanHalf = false, isPositiveArc = false, 11.060999999999998f, 7.743f) + moveTo(15.602999999999998f, 7.743f) + curveTo(15.554999999999998f, 7.838f, 15.554999999999998f, 7.963f, 15.554999999999998f, 8.211f) + lineTo(15.554999999999998f, 15.678f) + curveTo(15.554999999999998f, 15.927000000000001f, 15.554999999999998f, 16.051000000000002f, 15.602999999999998f, 16.146f) + curveTo(15.645999999999997f, 16.23f, 15.712999999999997f, 16.298000000000002f, 15.796999999999999f, 16.341f) + curveTo(15.892f, 16.389f, 16.017f, 16.389f, 16.266f, 16.389f) + lineTo(16.621f, 16.389f) + curveTo(16.871f, 16.389f, 16.994999999999997f, 16.389f, 17.09f, 16.341f) + arcTo(0.45f, 0.45f, 62.648676772654966f, isMoreThanHalf = false, isPositiveArc = false, 17.284f, 16.146f) + curveTo(17.331999999999997f, 16.051000000000002f, 17.331999999999997f, 15.926f, 17.331999999999997f, 15.678f) + lineTo(17.331999999999997f, 12.833f) + lineTo(18.496999999999996f, 12.833f) + curveTo(18.744999999999997f, 12.833f, 18.869999999999997f, 12.833f, 18.964999999999996f, 12.785f) + arcTo(0.44f, 0.44f, 63.16591975573423f, isMoreThanHalf = false, isPositiveArc = false, 19.158999999999995f, 12.591f) + curveTo(19.207999999999995f, 12.495999999999999f, 19.207999999999995f, 12.370999999999999f, 19.207999999999995f, 12.122f) + lineTo(19.207999999999995f, 11.767f) + curveTo(19.207999999999995f, 11.517f, 19.207999999999995f, 11.392999999999999f, 19.158999999999995f, 11.298f) + arcTo(0.44f, 0.44f, 333.16591975573476f, isMoreThanHalf = false, isPositiveArc = false, 18.964999999999996f, 11.104f) + curveTo(18.869999999999997f, 11.056f, 18.744999999999997f, 11.056f, 18.495999999999995f, 11.056f) + lineTo(17.331999999999994f, 11.056f) + lineTo(17.332f, 9.278f) + lineTo(19.288f, 9.278f) + curveTo(19.537f, 9.278f, 19.661f, 9.278f, 19.756f, 9.229000000000001f) + arcTo(0.45f, 0.45f, 62.94325596700548f, isMoreThanHalf = false, isPositiveArc = false, 19.951f, 9.035f) + curveTo(20.0f, 8.94f, 20.0f, 8.815f, 20.0f, 8.567f) + lineTo(20.0f, 8.21f) + curveTo(20.0f, 7.961000000000001f, 20.0f, 7.837000000000001f, 19.952f, 7.742000000000001f) + arcTo(0.45f, 0.45f, 332.84318987959733f, isMoreThanHalf = false, isPositiveArc = false, 19.757f, 7.547000000000001f) + curveTo(19.662000000000003f, 7.4990000000000006f, 19.537000000000003f, 7.4990000000000006f, 19.289f, 7.4990000000000006f) + lineTo(17.156000000000002f, 7.4990000000000006f) + curveTo(17.044000000000004f, 7.4990000000000006f, 16.958000000000002f, 7.4990000000000006f, 16.888f, 7.503f) + curveTo(16.818f, 7.4990000000000006f, 16.733f, 7.4990000000000006f, 16.622f, 7.4990000000000006f) + lineTo(16.267f, 7.4990000000000006f) + curveTo(16.017f, 7.4990000000000006f, 15.892999999999999f, 7.4990000000000006f, 15.798f, 7.548000000000001f) + arcTo(0.44f, 0.44f, 243.16591975573465f, isMoreThanHalf = false, isPositiveArc = false, 15.604f, 7.742000000000001f) + } + }.build().also { + _alf = it + } + } + + +private var _alf: ImageVector? = null + +@Preview(showBackground = true) +@Composable +private fun AlfIconPreview() { + Icon( + modifier = Modifier.size(128.dp), + imageVector = BezierIcons.Alf.imageVector, + contentDescription = null, + ) +} diff --git a/bezier/src/main/java/io/channel/bezier/icon/BlockSmall.kt b/bezier/src/main/java/io/channel/bezier/icon/BlockSmall.kt new file mode 100644 index 00000000..a8380505 --- /dev/null +++ b/bezier/src/main/java/io/channel/bezier/icon/BlockSmall.kt @@ -0,0 +1,63 @@ +@file:Suppress("ObjectPropertyName", "UnusedReceiverParameter") + +// Auto-generated by script/generate_compose_bezier_icon.py + +package io.channel.bezier.icon + +import androidx.compose.foundation.layout.size +import androidx.compose.material.Icon +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.vector.ImageVector +import androidx.compose.ui.graphics.vector.path +import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.unit.dp +import io.channel.bezier.BezierIcon +import io.channel.bezier.BezierIcons + +val BezierIcons.BlockSmall: BezierIcon + get() = object : BezierIcon { + override val imageVector: ImageVector + get() = _blockSmall ?: ImageVector.Builder( + name = "BlockSmall", + defaultWidth = 24.dp, + defaultHeight = 24.dp, + viewportWidth = 24f, + viewportHeight = 24f, + ).apply { + path( + fill = SolidColor(Color(0xFF313234)), + strokeLineWidth = 1f, + pathFillType = PathFillType.EvenOdd, + ) { + moveTo(17.0f, 12.0f) + arcTo(5.0f, 5.0f, 359.99088928344105f, isMoreThanHalf = false, isPositiveArc = true, 9.243f, 16.172f) + lineTo(16.172f, 9.242f) + curveTo(16.695f, 10.033000000000001f, 17.0f, 10.981000000000002f, 17.0f, 12.0f) + moveTo(7.827999999999999f, 14.758f) + lineTo(14.758f, 7.827999999999999f) + arcTo(5.0f, 5.0f, 303.49536615611447f, isMoreThanHalf = false, isPositiveArc = false, 7.828999999999999f, 14.757f) + moveTo(19.0f, 12.0f) + arcTo(7.0f, 7.0f, 0.0f, isMoreThanHalf = true, isPositiveArc = true, 5.0f, 12.0f) + arcTo(7.0f, 7.0f, 180.0f, isMoreThanHalf = false, isPositiveArc = true, 19.0f, 12.0f) + } + }.build().also { + _blockSmall = it + } + } + + +private var _blockSmall: ImageVector? = null + +@Preview(showBackground = true) +@Composable +private fun BlockSmallIconPreview() { + Icon( + modifier = Modifier.size(128.dp), + imageVector = BezierIcons.BlockSmall.imageVector, + contentDescription = null, + ) +} diff --git a/bezier/src/main/res/drawable/icon_alf.xml b/bezier/src/main/res/drawable/icon_alf.xml new file mode 100644 index 00000000..af0a6967 --- /dev/null +++ b/bezier/src/main/res/drawable/icon_alf.xml @@ -0,0 +1,10 @@ + + + diff --git a/bezier/src/main/res/drawable/icon_block_small.xml b/bezier/src/main/res/drawable/icon_block_small.xml new file mode 100644 index 00000000..7c9297b9 --- /dev/null +++ b/bezier/src/main/res/drawable/icon_block_small.xml @@ -0,0 +1,10 @@ + + +