Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bezier asset main #72

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions bezier/src/main/java/io/channel/bezier/icon/LegacyChannel.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
@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.LegacyChannel: BezierIcon
get() = object : BezierIcon {
override val imageVector: ImageVector
get() = _legacyChannel ?: ImageVector.Builder(
name = "LegacyChannel",
defaultWidth = 24.dp,
defaultHeight = 24.dp,
viewportWidth = 24f,
viewportHeight = 24f,
).apply {
path(
fill = SolidColor(Color(0xFF313234)),
strokeLineWidth = 1f,
pathFillType = PathFillType.EvenOdd,
) {
moveTo(21.133f, 17.247f)
lineTo(21.616f, 19.181f)
arcTo(1.99f, 1.99f, 345.8055331835199f, isMoreThanHalf = false, isPositiveArc = true, 21.089f, 21.081f)
arcTo(1.99f, 1.99f, 44.83329508633405f, isMoreThanHalf = false, isPositiveArc = true, 19.189f, 21.607f)
lineTo(17.256f, 21.125f)
arcTo(2.2f, 2.2f, 284.2641666796407f, isMoreThanHalf = false, isPositiveArc = false, 15.876000000000001f, 21.223f)
arcTo(9.9f, 9.9f, 67.14822560309321f, isMoreThanHalf = false, isPositiveArc = true, 12.009f, 22.0f)
lineTo(12.004f, 22.0f)
arcTo(9.95f, 9.95f, 89.92740588082974f, isMoreThanHalf = false, isPositiveArc = true, 4.938999999999999f, 19.069f)
arcTo(9.93f, 9.93f, 134.75101800642202f, isMoreThanHalf = false, isPositiveArc = true, 2.0f, 12.004f)
arcTo(9.94f, 9.94f, 179.82298639862887f, isMoreThanHalf = false, isPositiveArc = true, 4.928f, 4.928f)
arcTo(9.94f, 9.94f, 224.864189099838f, isMoreThanHalf = false, isPositiveArc = true, 12.001f, 2.0f)
lineTo(12.004f, 2.0f)
arcTo(9.92f, 9.92f, 269.9066789943324f, isMoreThanHalf = false, isPositiveArc = true, 19.069f, 4.9399999999999995f)
arcTo(9.93f, 9.93f, 314.8159249784581f, isMoreThanHalf = false, isPositiveArc = true, 22.0f, 12.006f)
curveTo(22.0f, 13.345f, 21.738f, 14.646f, 21.223f, 15.872f)
arcTo(2.2f, 2.2f, 202.3881897946248f, isMoreThanHalf = false, isPositiveArc = false, 21.125f, 17.252f)
close()
moveTo(12.006f, 4.216f)
lineTo(12.003f, 4.216f)
curveTo(9.925f, 4.216f, 7.97f, 5.026f, 6.503f, 6.496f)
arcTo(7.73f, 7.73f, 225.1670723620781f, isMoreThanHalf = false, isPositiveArc = false, 4.223000000000001f, 11.998000000000001f)
curveTo(4.223000000000001f, 14.067f, 5.0360000000000005f, 16.019000000000002f, 6.5120000000000005f, 17.492f)
arcTo(7.7f, 7.7f, 135.2809301271465f, isMoreThanHalf = false, isPositiveArc = false, 12.008000000000001f, 19.774f)
arcTo(7.75f, 7.75f, 90.0579862376116f, isMoreThanHalf = false, isPositiveArc = false, 15.013000000000002f, 19.171f)
arcTo(4.45f, 4.45f, 247.4931754257314f, isMoreThanHalf = false, isPositiveArc = true, 17.792f, 18.964f)
lineTo(19.008000000000003f, 19.267f)
curveTo(19.171000000000003f, 19.307f, 19.318f, 19.16f, 19.278000000000002f, 18.997f)
lineTo(18.975f, 17.781f)
arcTo(4.45f, 4.45f, 165.95303274908488f, isMoreThanHalf = false, isPositiveArc = true, 19.179000000000002f, 15.001999999999999f)
curveTo(19.580000000000002f, 14.050999999999998f, 19.782000000000004f, 13.038999999999998f, 19.782000000000004f, 11.998f)
curveTo(19.782000000000004f, 9.927999999999999f, 18.972000000000005f, 7.975999999999999f, 17.500000000000004f, 6.5009999999999994f)
arcTo(7.73f, 7.73f, 315.2503650680584f, isMoreThanHalf = false, isPositiveArc = false, 12.006000000000004f, 4.212999999999999f)
close()
moveTo(12.0f, 16.777f)
arcTo(5.74f, 5.74f, 90.04536367633517f, isMoreThanHalf = false, isPositiveArc = false, 17.064f, 13.748000000000001f)
lineTo(17.058f, 13.748000000000001f)
arcTo(0.447f, 0.447f, 27.985813697572205f, isMoreThanHalf = false, isPositiveArc = false, 16.895f, 13.156f)
lineTo(15.463f, 12.297f)
arcTo(0.445f, 0.445f, 300.9425763938789f, isMoreThanHalf = false, isPositiveArc = false, 14.835999999999999f, 12.48f)
arcTo(3.182f, 3.182f, 26.86813336346085f, isMoreThanHalf = false, isPositiveArc = true, 9.158999999999999f, 12.48f)
arcTo(0.445f, 0.445f, 333.4840388249685f, isMoreThanHalf = false, isPositiveArc = false, 8.531999999999998f, 12.297f)
lineTo(7.099999999999998f, 13.157f)
arcTo(0.447f, 0.447f, 238.71416367670577f, isMoreThanHalf = false, isPositiveArc = false, 6.936999999999998f, 13.748f)
arcTo(5.75f, 5.75f, 151.76797134974893f, isMoreThanHalf = false, isPositiveArc = false, 12.0f, 16.778f)
}
}.build().also {
_legacyChannel = it
}
}


private var _legacyChannel: ImageVector? = null

@Preview(showBackground = true)
@Composable
private fun LegacyChannelIconPreview() {
Icon(
modifier = Modifier.size(128.dp),
imageVector = BezierIcons.LegacyChannel.imageVector,
contentDescription = null,
)
}
76 changes: 76 additions & 0 deletions bezier/src/main/java/io/channel/bezier/icon/LegacyChannelFilled.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
@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.LegacyChannelFilled: BezierIcon
get() = object : BezierIcon {
override val imageVector: ImageVector
get() = _legacyChannelFilled ?: ImageVector.Builder(
name = "LegacyChannelFilled",
defaultWidth = 24.dp,
defaultHeight = 24.dp,
viewportWidth = 24f,
viewportHeight = 24f,
).apply {
path(
fill = SolidColor(Color(0xFF313234)),
strokeLineWidth = 1f,
pathFillType = PathFillType.EvenOdd,
) {
moveTo(21.997f, 12.006f)
curveTo(21.997f, 13.376000000000001f, 21.721f, 14.68f, 21.221f, 15.870000000000001f)
lineTo(21.221f, 15.873000000000001f)
arcTo(3.73f, 3.73f, 202.53571213903382f, isMoreThanHalf = false, isPositiveArc = false, 21.049f, 18.213f)
lineTo(21.592f, 20.387f)
arcTo(0.998f, 0.998f, 345.9047468611427f, isMoreThanHalf = false, isPositiveArc = true, 20.381f, 21.598f)
lineTo(18.207f, 21.055f)
arcTo(3.73f, 3.73f, 284.1278632827351f, isMoreThanHalf = false, isPositiveArc = false, 15.867f, 21.227f)
curveTo(14.677000000000001f, 21.727f, 13.374f, 22.003f, 12.003f, 22.003f)
curveTo(6.5f, 22.003f, 2.0f, 17.51f, 2.0f, 12.006f)
curveTo(1.997f, 6.48f, 6.477f, 2.003f, 12.003f, 2.003f)
curveTo(17.508f, 2.003f, 21.997f, 6.502f, 21.997f, 12.006f)
moveTo(17.863f, 14.055f)
arcTo(6.66f, 6.66f, 28.276267997628807f, isMoreThanHalf = false, isPositiveArc = true, 11.992999999999999f, 17.56f)
lineTo(11.987999999999998f, 17.56f)
arcTo(6.67f, 6.67f, 90.01081015027373f, isMoreThanHalf = false, isPositiveArc = true, 6.117999999999998f, 14.055f)
arcTo(0.5f, 0.5f, 152.21067007295218f, isMoreThanHalf = false, isPositiveArc = true, 6.304999999999998f, 13.392f)
lineTo(8.095999999999998f, 12.318999999999999f)
arcTo(0.506f, 0.506f, 239.7078053939179f, isMoreThanHalf = false, isPositiveArc = true, 8.803999999999998f, 12.53f)
arcTo(3.58f, 3.58f, 152.88377889938914f, isMoreThanHalf = false, isPositiveArc = false, 15.177f, 12.53f)
arcTo(0.507f, 0.507f, 206.6378898499879f, isMoreThanHalf = false, isPositiveArc = true, 15.885f, 12.318999999999999f)
lineTo(17.676f, 13.392f)
curveTo(17.906f, 13.53f, 17.988999999999997f, 13.822f, 17.863f, 14.055f)
}
}.build().also {
_legacyChannelFilled = it
}
}


private var _legacyChannelFilled: ImageVector? = null

@Preview(showBackground = true)
@Composable
private fun LegacyChannelFilledIconPreview() {
Icon(
modifier = Modifier.size(128.dp),
imageVector = BezierIcons.LegacyChannelFilled.imageVector,
contentDescription = null,
)
}
10 changes: 10 additions & 0 deletions bezier/src/main/res/drawable/icon_legacy_channel.xml
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="m21.133,17.247 l0.483,1.934a1.99,1.99 0,0 1,-0.527 1.9,1.99 1.99,0 0,1 -1.9,0.526l-1.933,-0.482a2.2,2.2 0,0 0,-1.38 0.098,9.9 9.9,0 0,1 -3.867,0.777h-0.005a9.95,9.95 0,0 1,-7.065 -2.931A9.93,9.93 0,0 1,2 12.004a9.94,9.94 0,0 1,2.928 -7.076A9.94,9.94 0,0 1,12.001 2h0.003a9.92,9.92 0,0 1,7.065 2.94A9.93,9.93 0,0 1,22 12.006c0,1.339 -0.262,2.64 -0.777,3.866a2.2,2.2 0,0 0,-0.098 1.38zM12.006,4.216h-0.003c-2.078,0 -4.033,0.81 -5.5,2.28a7.73,7.73 0,0 0,-2.28 5.502c0,2.069 0.813,4.021 2.289,5.494a7.7,7.7 0,0 0,5.496 2.282,7.75 7.75,0 0,0 3.005,-0.603 4.45,4.45 0,0 1,2.779 -0.207l1.216,0.303c0.163,0.04 0.31,-0.107 0.27,-0.27l-0.303,-1.216a4.45,4.45 0,0 1,0.204 -2.779c0.401,-0.951 0.603,-1.963 0.603,-3.004 0,-2.07 -0.81,-4.022 -2.282,-5.497a7.73,7.73 0,0 0,-5.494 -2.288zM12,16.777a5.74,5.74 0,0 0,5.064 -3.029h-0.006a0.447,0.447 0,0 0,-0.163 -0.592l-1.432,-0.859a0.445,0.445 0,0 0,-0.627 0.183,3.182 3.182,0 0,1 -5.677,0 0.445,0.445 0,0 0,-0.627 -0.183l-1.432,0.86a0.447,0.447 0,0 0,-0.163 0.591A5.75,5.75 0,0 0,12 16.778"
android:fillColor="#313234"
android:fillType="evenOdd"/>
</vector>
10 changes: 10 additions & 0 deletions bezier/src/main/res/drawable/icon_legacy_channel_filled.xml
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="M21.997,12.006c0,1.37 -0.276,2.674 -0.776,3.864v0.003a3.73,3.73 0,0 0,-0.172 2.34l0.543,2.174a0.998,0.998 0,0 1,-1.211 1.211l-2.174,-0.543a3.73,3.73 0,0 0,-2.34 0.172c-1.19,0.5 -2.493,0.776 -3.864,0.776C6.5,22.003 2,17.51 2,12.006 1.997,6.48 6.477,2.003 12.003,2.003c5.505,0 9.994,4.499 9.994,10.003m-4.134,2.049a6.66,6.66 0,0 1,-5.87 3.505h-0.005a6.67,6.67 0,0 1,-5.87 -3.505,0.5 0.5,0 0,1 0.187,-0.663l1.791,-1.073a0.506,0.506 0,0 1,0.708 0.211,3.58 3.58,0 0,0 6.373,0 0.507,0.507 0,0 1,0.708 -0.211l1.791,1.073c0.23,0.138 0.313,0.43 0.187,0.663"
android:fillColor="#313234"
android:fillType="evenOdd"/>
</vector>