-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update bezier icon bezier asset main
- Loading branch information
1 parent
1c3f7c5
commit 3f816a8
Showing
2 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
@file:Suppress("ObjectPropertyName", "UnusedReceiverParameter") | ||
|
||
// Auto-generated by script/generate_compose_bezier_icon.py | ||
|
||
package io.channel.bezier.icon | ||
|
||
import androidx.annotation.DrawableRes | ||
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 | ||
import io.channel.bezier.compose.R | ||
|
||
val BezierIcons.Puzzle: BezierIcon | ||
get() = object : BezierIcon { | ||
@DrawableRes | ||
override val resourceId: Int = R.drawable.icon_puzzle | ||
override val imageVector: ImageVector | ||
get() = _puzzle ?: ImageVector.Builder( | ||
name = "Puzzle", | ||
defaultWidth = 24.dp, | ||
defaultHeight = 24.dp, | ||
viewportWidth = 24f, | ||
viewportHeight = 24f, | ||
).apply { | ||
path( | ||
fill = SolidColor(Color(0xFF313234)), | ||
strokeLineWidth = 1f, | ||
pathFillType = PathFillType.EvenOdd, | ||
) { | ||
moveTo(7.0f, 5.0f) | ||
arcTo(4.0f, 4.0f, 180.0f, isMoreThanHalf = true, isPositiveArc = true, 15.0f, 5.0f) | ||
curveTo(15.459f, 5.0f, 15.86f, 5.003f, 16.195f, 5.03f) | ||
curveTo(16.59f, 5.063000000000001f, 16.984f, 5.134f, 17.362000000000002f, 5.327f) | ||
arcTo(3.0f, 3.0f, 297.000682627168f, isMoreThanHalf = false, isPositiveArc = true, 18.673000000000002f, 6.638f) | ||
curveTo(18.866000000000003f, 7.016f, 18.937f, 7.41f, 18.969f, 7.805f) | ||
curveTo(18.997f, 8.141f, 18.999000000000002f, 8.541f, 19.0f, 9.0f) | ||
arcTo(4.0f, 4.0f, 270.0f, isMoreThanHalf = false, isPositiveArc = true, 19.0f, 17.0f) | ||
curveTo(19.0f, 17.459f, 18.997f, 17.86f, 18.97f, 18.195f) | ||
curveTo(18.936999999999998f, 18.59f, 18.866f, 18.984f, 18.673f, 19.362000000000002f) | ||
arcTo(3.0f, 3.0f, 27.00068262716798f, isMoreThanHalf = false, isPositiveArc = true, 17.362f, 20.673000000000002f) | ||
curveTo(16.983999999999998f, 20.866000000000003f, 16.59f, 20.937f, 16.194999999999997f, 20.969f) | ||
curveTo(15.819999999999997f, 21.0f, 15.364999999999997f, 21.0f, 14.838999999999997f, 21.0f) | ||
lineTo(13.204999999999997f, 21.0f) | ||
curveTo(12.869999999999996f, 21.0f, 12.701999999999996f, 21.0f, 12.584999999999997f, 20.931f) | ||
arcTo(0.5f, 0.5f, 120.32994014108094f, isMoreThanHalf = false, isPositiveArc = true, 12.364999999999997f, 20.663f) | ||
curveTo(12.320999999999996f, 20.533f, 12.354999999999997f, 20.369f, 12.420999999999996f, 20.041f) | ||
lineTo(12.469999999999995f, 19.801000000000002f) | ||
quadTo(12.499999999999995f, 19.656000000000002f, 12.499999999999995f, 19.500000000000004f) | ||
arcTo(1.5f, 1.5f, 359.9039666802721f, isMoreThanHalf = true, isPositiveArc = false, 9.529999999999994f, 19.801000000000002f) | ||
lineTo(9.578999999999994f, 20.041f) | ||
curveTo(9.644999999999994f, 20.369f, 9.678999999999993f, 20.534f, 9.634999999999993f, 20.663f) | ||
arcTo(0.5f, 0.5f, 19.094778960827316f, isMoreThanHalf = false, isPositiveArc = true, 9.414999999999992f, 20.931f) | ||
curveTo(9.298f, 21.0f, 9.13f, 21.0f, 8.795f, 21.0f) | ||
lineTo(7.16f, 21.0f) | ||
curveTo(6.633f, 21.0f, 6.179f, 21.0f, 5.804f, 20.97f) | ||
curveTo(5.409000000000001f, 20.936999999999998f, 5.015000000000001f, 20.866f, 4.6370000000000005f, 20.673f) | ||
arcTo(3.0f, 3.0f, 117.00068262716798f, isMoreThanHalf = false, isPositiveArc = true, 3.3260000000000005f, 19.362f) | ||
curveTo(3.1330000000000005f, 18.983999999999998f, 3.0620000000000003f, 18.59f, 3.0300000000000007f, 18.194999999999997f) | ||
arcTo(18.0f, 18.0f, 176.5727622356145f, isMoreThanHalf = false, isPositiveArc = true, 3.0f, 16.838f) | ||
lineTo(3.0f, 15.205000000000002f) | ||
curveTo(3.0f, 14.870000000000001f, 3.0f, 14.702000000000002f, 3.069f, 14.585000000000003f) | ||
arcTo(0.5f, 0.5f, 210.3299401410809f, isMoreThanHalf = false, isPositiveArc = true, 3.3369999999999997f, 14.365000000000002f) | ||
curveTo(3.4669999999999996f, 14.321000000000002f, 3.63f, 14.355000000000002f, 3.9589999999999996f, 14.421000000000001f) | ||
lineTo(4.199f, 14.47f) | ||
quadTo(4.343f, 14.5f, 4.5f, 14.5f) | ||
arcTo(1.5f, 1.5f, 89.9039666802728f, isMoreThanHalf = true, isPositiveArc = false, 4.199f, 11.53f) | ||
lineTo(3.9589999999999996f, 11.578999999999999f) | ||
curveTo(3.6299999999999994f, 11.645f, 3.4659999999999997f, 11.678999999999998f, 3.3369999999999997f, 11.634999999999998f) | ||
arcTo(0.5f, 0.5f, 109.09477896082745f, isMoreThanHalf = false, isPositiveArc = true, 3.069f, 11.414999999999997f) | ||
curveTo(3.0f, 11.298f, 3.0f, 11.13f, 3.0f, 10.795f) | ||
lineTo(3.0f, 9.16f) | ||
curveTo(3.0f, 8.633000000000001f, 3.0f, 8.179f, 3.03f, 7.804f) | ||
curveTo(3.0629999999999997f, 7.409000000000001f, 3.134f, 7.015000000000001f, 3.327f, 6.6370000000000005f) | ||
arcTo(3.0f, 3.0f, 207.00068262716798f, isMoreThanHalf = false, isPositiveArc = true, 4.638f, 5.3260000000000005f) | ||
curveTo(5.016f, 5.133000000000001f, 5.41f, 5.062f, 5.805f, 5.03f) | ||
curveTo(6.141f, 5.003f, 6.541f, 5.0f, 7.0f, 5.0f) | ||
moveTo(11.0f, 3.0f) | ||
arcTo(2.0f, 2.0f, 270.0143188802998f, isMoreThanHalf = false, isPositiveArc = false, 9.114f, 5.667f) | ||
lineTo(9.208f, 5.933f) | ||
curveTo(9.335f, 6.293f, 9.398f, 6.473f, 9.364f, 6.616f) | ||
arcTo(0.5f, 0.5f, 13.409028290018252f, isMoreThanHalf = false, isPositiveArc = true, 9.149000000000001f, 6.92f) | ||
curveTo(9.025f, 7.0f, 8.835f, 7.0f, 8.454f, 7.0f) | ||
lineTo(7.2f, 7.0f) | ||
curveTo(6.623f, 7.0f, 6.251f, 7.0f, 5.968f, 7.024f) | ||
curveTo(5.696f, 7.046f, 5.595f, 7.084f, 5.546f, 7.109f) | ||
arcTo(1.0f, 1.0f, 242.99931737283202f, isMoreThanHalf = false, isPositiveArc = false, 5.109f, 7.546f) | ||
curveTo(5.084f, 7.596f, 5.046f, 7.696000000000001f, 5.024f, 7.968f) | ||
curveTo(5.0f, 8.25f, 5.0f, 8.623f, 5.0f, 9.2f) | ||
lineTo(5.0f, 9.535f) | ||
arcTo(3.5f, 3.5f, 278.10961445599423f, isMoreThanHalf = false, isPositiveArc = true, 5.0f, 16.465f) | ||
lineTo(5.0f, 16.8f) | ||
curveTo(5.0f, 17.377000000000002f, 5.0f, 17.749000000000002f, 5.024f, 18.032f) | ||
curveTo(5.046f, 18.304f, 5.084f, 18.404f, 5.109f, 18.454f) | ||
arcTo(1.0f, 1.0f, 152.9993173728321f, isMoreThanHalf = false, isPositiveArc = false, 5.546f, 18.891000000000002f) | ||
curveTo(5.596f, 18.916f, 5.696000000000001f, 18.954f, 5.968f, 18.976000000000003f) | ||
curveTo(6.25f, 19.0f, 6.623f, 19.0f, 7.2f, 19.0f) | ||
lineTo(7.535f, 19.0f) | ||
arcTo(3.5f, 3.5f, 188.10961445599418f, isMoreThanHalf = false, isPositiveArc = true, 14.465f, 19.0f) | ||
lineTo(14.8f, 19.0f) | ||
curveTo(15.377f, 19.0f, 15.749f, 19.0f, 16.032f, 18.976f) | ||
curveTo(16.304f, 18.954f, 16.404f, 18.916f, 16.454f, 18.891f) | ||
arcTo(1.0f, 1.0f, 62.999317372832074f, isMoreThanHalf = false, isPositiveArc = false, 16.891000000000002f, 18.453999999999997f) | ||
curveTo(16.916f, 18.403999999999996f, 16.954f, 18.304f, 16.976000000000003f, 18.031999999999996f) | ||
curveTo(17.0f, 17.75f, 17.0f, 17.377f, 17.0f, 16.8f) | ||
lineTo(17.0f, 15.546000000000001f) | ||
curveTo(17.0f, 15.166f, 17.0f, 14.975000000000001f, 17.08f, 14.851f) | ||
arcTo(0.5f, 0.5f, 212.8703136113849f, isMoreThanHalf = false, isPositiveArc = true, 17.383999999999997f, 14.636000000000001f) | ||
curveTo(17.527999999999995f, 14.602f, 17.706999999999997f, 14.666f, 18.066999999999997f, 14.792000000000002f) | ||
lineTo(18.333f, 14.887000000000002f) | ||
quadTo(18.645999999999997f, 14.998000000000003f, 19.0f, 15.000000000000002f) | ||
arcTo(2.0f, 2.0f, 89.95943562358292f, isMoreThanHalf = true, isPositiveArc = false, 18.333f, 11.114f) | ||
lineTo(18.067f, 11.208f) | ||
curveTo(17.707f, 11.335f, 17.527f, 11.398f, 17.384f, 11.364f) | ||
arcTo(0.5f, 0.5f, 103.40902829001851f, isMoreThanHalf = false, isPositiveArc = true, 17.080000000000002f, 11.149000000000001f) | ||
curveTo(17.000000000000004f, 11.025f, 17.000000000000004f, 10.835f, 17.000000000000004f, 10.454f) | ||
lineTo(17.000000000000004f, 9.2f) | ||
curveTo(17.000000000000004f, 8.623f, 17.000000000000004f, 8.251f, 16.976000000000003f, 7.967999999999999f) | ||
curveTo(16.954000000000004f, 7.695999999999999f, 16.916000000000004f, 7.594999999999999f, 16.891000000000002f, 7.545999999999999f) | ||
arcTo(1.0f, 1.0f, 332.99931737283197f, isMoreThanHalf = false, isPositiveArc = false, 16.454f, 7.108999999999999f) | ||
curveTo(16.404f, 7.083999999999999f, 16.304000000000002f, 7.045999999999999f, 16.032f, 7.023999999999999f) | ||
curveTo(15.75f, 7.0f, 15.377f, 7.0f, 14.8f, 7.0f) | ||
lineTo(13.546000000000001f, 7.0f) | ||
curveTo(13.166f, 7.0f, 12.975000000000001f, 7.0f, 12.851f, 6.92f) | ||
arcTo(0.5f, 0.5f, 122.87031361138496f, isMoreThanHalf = false, isPositiveArc = true, 12.636000000000001f, 6.616f) | ||
curveTo(12.602f, 6.4719999999999995f, 12.666f, 6.292999999999999f, 12.792000000000002f, 5.933f) | ||
lineTo(12.887000000000002f, 5.667f) | ||
quadTo(12.998f, 5.355f, 13.0f, 5.0f) | ||
arcTo(2.0f, 2.0f, 0.0f, isMoreThanHalf = false, isPositiveArc = false, 11.0f, 3.0f) | ||
} | ||
}.build().also { | ||
_puzzle = it | ||
} | ||
} | ||
|
||
|
||
private var _puzzle: ImageVector? = null | ||
|
||
@Preview(showBackground = true) | ||
@Composable | ||
private fun PuzzleIconPreview() { | ||
Icon( | ||
modifier = Modifier.size(128.dp), | ||
imageVector = BezierIcons.Puzzle.imageVector, | ||
contentDescription = null, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:pathData="M7,5a4,4 0,1 1,8 0c0.459,0 0.86,0.003 1.195,0.03 0.395,0.033 0.789,0.104 1.167,0.297a3,3 0,0 1,1.311 1.311c0.193,0.378 0.264,0.772 0.296,1.167 0.028,0.336 0.03,0.736 0.031,1.195a4,4 0,0 1,0 8c0,0.459 -0.003,0.86 -0.03,1.195 -0.033,0.395 -0.104,0.789 -0.297,1.167a3,3 0,0 1,-1.311 1.311c-0.378,0.193 -0.772,0.264 -1.167,0.296 -0.375,0.031 -0.83,0.031 -1.356,0.031h-1.634c-0.335,0 -0.503,0 -0.62,-0.069a0.5,0.5 0,0 1,-0.22 -0.268c-0.044,-0.13 -0.01,-0.294 0.056,-0.622l0.049,-0.24q0.03,-0.145 0.03,-0.301a1.5,1.5 0,1 0,-2.97 0.301l0.049,0.24c0.066,0.328 0.1,0.493 0.056,0.622a0.5,0.5 0,0 1,-0.22 0.268C9.298,21 9.13,21 8.795,21H7.16c-0.527,0 -0.981,0 -1.356,-0.03 -0.395,-0.033 -0.789,-0.104 -1.167,-0.297a3,3 0,0 1,-1.311 -1.311c-0.193,-0.378 -0.264,-0.772 -0.296,-1.167A18,18 0,0 1,3 16.838v-1.633c0,-0.335 0,-0.503 0.069,-0.62a0.5,0.5 0,0 1,0.268 -0.22c0.13,-0.044 0.293,-0.01 0.622,0.056l0.24,0.049q0.144,0.03 0.301,0.03a1.5,1.5 0,1 0,-0.301 -2.97l-0.24,0.049c-0.329,0.066 -0.493,0.1 -0.622,0.056a0.5,0.5 0,0 1,-0.268 -0.22C3,11.298 3,11.13 3,10.795V9.16c0,-0.527 0,-0.981 0.03,-1.356 0.033,-0.395 0.104,-0.789 0.297,-1.167a3,3 0,0 1,1.311 -1.311c0.378,-0.193 0.772,-0.264 1.167,-0.296C6.141,5.003 6.541,5 7,5m4,-2a2,2 0,0 0,-1.886 2.667l0.094,0.266c0.127,0.36 0.19,0.54 0.156,0.683a0.5,0.5 0,0 1,-0.215 0.304C9.025,7 8.835,7 8.454,7H7.2c-0.577,0 -0.949,0 -1.232,0.024 -0.272,0.022 -0.373,0.06 -0.422,0.085a1,1 0,0 0,-0.437 0.437c-0.025,0.05 -0.063,0.15 -0.085,0.422C5,8.25 5,8.623 5,9.2v0.335a3.5,3.5 0,0 1,0 6.93v0.335c0,0.577 0,0.949 0.024,1.232 0.022,0.272 0.06,0.372 0.085,0.422a1,1 0,0 0,0.437 0.437c0.05,0.025 0.15,0.063 0.422,0.085C6.25,19 6.623,19 7.2,19h0.335a3.5,3.5 0,0 1,6.93 0h0.335c0.577,0 0.949,0 1.232,-0.024 0.272,-0.022 0.372,-0.06 0.422,-0.085a1,1 0,0 0,0.437 -0.437c0.025,-0.05 0.063,-0.15 0.085,-0.422C17,17.75 17,17.377 17,16.8v-1.254c0,-0.38 0,-0.571 0.08,-0.695a0.5,0.5 0,0 1,0.304 -0.215c0.144,-0.034 0.323,0.03 0.683,0.156l0.266,0.095q0.313,0.111 0.667,0.113a2,2 0,1 0,-0.667 -3.886l-0.266,0.094c-0.36,0.127 -0.54,0.19 -0.683,0.156a0.5,0.5 0,0 1,-0.304 -0.215c-0.08,-0.124 -0.08,-0.314 -0.08,-0.695V9.2c0,-0.577 0,-0.949 -0.024,-1.232 -0.022,-0.272 -0.06,-0.373 -0.085,-0.422a1,1 0,0 0,-0.437 -0.437c-0.05,-0.025 -0.15,-0.063 -0.422,-0.085C15.75,7 15.377,7 14.8,7h-1.254c-0.38,0 -0.571,0 -0.695,-0.08a0.5,0.5 0,0 1,-0.215 -0.304c-0.034,-0.144 0.03,-0.323 0.156,-0.683l0.095,-0.266Q12.998,5.355 13,5a2,2 0,0 0,-2 -2" | ||
android:fillColor="#313234" | ||
android:fillType="evenOdd"/> | ||
</vector> |