Skip to content

Commit

Permalink
Clean Illus code
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Sep 4, 2024
1 parent 49f9d88 commit 22ce811
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ import com.infomaniak.swisstransfer.ui.icons.AppIcons.previewSize

val AppIcons.Illu.ArrowCurvedDownright: ImageVector
get() {
if (_arrowcurveddownright != null) {
return _arrowcurveddownright!!
}

if (_arrowcurveddownright != null) return _arrowcurveddownright!!

_arrowcurveddownright = Builder(
name = "Arrowcurveddownright",
defaultWidth = 37.0.dp,
defaultHeight = 45.0.dp,
viewportWidth = 37.0f,
viewportHeight = 45.0f
viewportHeight = 45.0f,
).apply {
path(
fill = SolidColor(Color(0xFF1A1A1A)),
Expand All @@ -55,7 +55,7 @@ val AppIcons.Illu.ArrowCurvedDownright: ImageVector
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(34.0f, 44.81f)
reflectiveCurveToRelative(1.352f, -0.094f, 2.001f, -0.31f)
Expand All @@ -71,6 +71,7 @@ val AppIcons.Illu.ArrowCurvedDownright: ImageVector
curveToRelative(4.04f, 0.0f, 6.982f, -0.005f, 11.022f, -0.005f)
}
}.build()

return _arrowcurveddownright!!
}

Expand All @@ -83,7 +84,7 @@ private fun Preview() {
Image(
imageVector = AppIcons.Illu.ArrowCurvedDownright,
contentDescription = null,
modifier = Modifier.size(previewSize)
modifier = Modifier.size(previewSize),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import androidx.compose.ui.graphics.StrokeJoin.Companion.Round as strokeJoinRoun

val AppIcons.Illu.ChainTilted: ImageVector
get() {
if (_chainTilted != null) {
return _chainTilted!!
}

if (_chainTilted != null) return _chainTilted!!

_chainTilted = Builder(
name = "ChainTilted",
defaultWidth = 120.0.dp,
defaultHeight = 80.0.dp,
viewportWidth = 120.0f,
viewportHeight = 80.0f
viewportHeight = 80.0f,
).apply {
path(
fill = null,
Expand All @@ -36,7 +36,7 @@ val AppIcons.Illu.ChainTilted: ImageVector
strokeLineCap = strokeCapRound,
strokeLineJoin = strokeJoinRound,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(47.17f, 75.82f)
lineToRelative(-4.56f, 4.56f)
Expand All @@ -51,7 +51,7 @@ val AppIcons.Illu.ChainTilted: ImageVector
strokeLineCap = strokeCapRound,
strokeLineJoin = strokeJoinRound,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(73.88f, 12.5f)
lineToRelative(3.67f, -3.67f)
Expand All @@ -60,6 +60,7 @@ val AppIcons.Illu.ChainTilted: ImageVector
arcToRelative(22.03f, 22.03f, 0.0f, false, true, -33.41f, -28.52f)
}
}.build()

return _chainTilted!!
}

Expand All @@ -72,7 +73,7 @@ private fun Preview() {
Image(
imageVector = AppIcons.Illu.ChainTilted,
contentDescription = null,
modifier = Modifier.size(AppIcons.previewSize)
modifier = Modifier.size(AppIcons.previewSize),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import androidx.compose.ui.graphics.StrokeJoin.Companion.Round as strokeJoinRoun

val AppIcons.Illu.EnvelopeTilted: ImageVector
get() {
if (_envelopeTilted != null) {
return _envelopeTilted!!
}

if (_envelopeTilted != null) return _envelopeTilted!!

_envelopeTilted = Builder(
name = "EnvelopeTilted",
defaultWidth = 120.0.dp,
defaultHeight = 80.0.dp,
viewportWidth = 120.0f,
viewportHeight = 80.0f
viewportHeight = 80.0f,
).apply {
path(
fill = null,
Expand All @@ -36,7 +36,7 @@ val AppIcons.Illu.EnvelopeTilted: ImageVector
strokeLineCap = strokeCapRound,
strokeLineJoin = strokeJoinRound,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(85.95f, 4.79f)
lineTo(63.9f, 63.07f)
Expand All @@ -49,7 +49,7 @@ val AppIcons.Illu.EnvelopeTilted: ImageVector
strokeLineCap = strokeCapRound,
strokeLineJoin = strokeJoinRound,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(80.94f, 5.11f)
lineTo(5.18f, 48.85f)
Expand All @@ -62,6 +62,7 @@ val AppIcons.Illu.EnvelopeTilted: ImageVector
curveToRelative(-1.85f, -3.21f, -5.9f, -4.34f, -9.03f, -2.53f)
}
}.build()

return _envelopeTilted!!
}

Expand All @@ -74,7 +75,7 @@ private fun Preview() {
Image(
imageVector = AppIcons.Illu.EnvelopeTilted,
contentDescription = null,
modifier = Modifier.size(AppIcons.previewSize)
modifier = Modifier.size(AppIcons.previewSize),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import com.infomaniak.swisstransfer.ui.icons.AppIcons

val AppIcons.Illu.LogoInfomaniak: ImageVector
get() {
if (_logoInfomaniak != null) {
return _logoInfomaniak!!
}

if (_logoInfomaniak != null) return _logoInfomaniak!!

_logoInfomaniak = Builder(
name = "LogoInfomaniak",
defaultWidth = 128.0.dp,
defaultHeight = 16.0.dp,
viewportWidth = 128.0f,
viewportHeight = 16.0f
viewportHeight = 16.0f,
).apply {
path(
fill = SolidColor(Color(0xFFFFFFFF)),
Expand All @@ -36,7 +36,7 @@ val AppIcons.Illu.LogoInfomaniak: ImageVector
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(0.0f, 0.26f)
horizontalLineToRelative(4.34f)
Expand Down Expand Up @@ -257,6 +257,7 @@ val AppIcons.Illu.LogoInfomaniak: ImageVector
close()
}
}.build()

return _logoInfomaniak!!
}

Expand All @@ -269,7 +270,7 @@ private fun Preview() {
Image(
imageVector = AppIcons.Illu.LogoInfomaniak,
contentDescription = null,
modifier = Modifier.size(AppIcons.previewSize)
modifier = Modifier.size(AppIcons.previewSize),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ import com.infomaniak.swisstransfer.ui.icons.AppIcons

val AppIcons.Illu.LogoSwissTransfer: ImageVector
get() {
if (_logoSwissTransfer != null) {
return _logoSwissTransfer!!
}

if (_logoSwissTransfer != null) return _logoSwissTransfer!!

_logoSwissTransfer = Builder(
name = "LogoSwissTransfer",
defaultWidth = 24.0.dp,
defaultHeight = 24.0.dp,
viewportWidth = 24.0f,
viewportHeight = 24.0f
viewportHeight = 24.0f,
).apply {
path(
fill = SolidColor(Color(0xFFFFFFFF)),
Expand All @@ -37,7 +37,7 @@ val AppIcons.Illu.LogoSwissTransfer: ImageVector
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(0.0f, 4.0f)
arcToRelative(4.0f, 4.0f, 0.0f, false, true, 4.0f, -4.0f)
Expand All @@ -58,7 +58,7 @@ val AppIcons.Illu.LogoSwissTransfer: ImageVector
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = EvenOdd
pathFillType = EvenOdd,
) {
moveTo(8.783f, 4.797f)
arcToRelative(0.803f, 0.803f, 0.0f, false, true, 1.04f, -0.761f)
Expand All @@ -79,7 +79,7 @@ val AppIcons.Illu.LogoSwissTransfer: ImageVector
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = EvenOdd
pathFillType = EvenOdd,
) {
moveTo(6.772f, 6.31f)
arcToRelative(0.803f, 0.803f, 0.0f, false, true, 1.041f, -0.761f)
Expand All @@ -98,7 +98,7 @@ val AppIcons.Illu.LogoSwissTransfer: ImageVector
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = EvenOdd
pathFillType = EvenOdd,
) {
moveTo(4.762f, 7.823f)
arcToRelative(0.803f, 0.803f, 0.0f, false, true, 1.04f, -0.761f)
Expand All @@ -117,7 +117,7 @@ val AppIcons.Illu.LogoSwissTransfer: ImageVector
strokeLineCap = Butt,
strokeLineJoin = Miter,
strokeLineMiter = 4.0f,
pathFillType = EvenOdd
pathFillType = EvenOdd,
) {
moveTo(11.131f, 10.806f)
arcToRelative(0.7f, 0.7f, 0.0f, false, true, 0.179f, 0.232f)
Expand All @@ -138,6 +138,7 @@ val AppIcons.Illu.LogoSwissTransfer: ImageVector
curveToRelative(0.118f, -0.182f, 0.39f, -0.18f, 0.607f, 0.004f)
}
}.build()

return _logoSwissTransfer!!
}

Expand All @@ -150,7 +151,7 @@ private fun Preview() {
Image(
imageVector = AppIcons.Illu.LogoSwissTransfer,
contentDescription = null,
modifier = Modifier.size(AppIcons.previewSize)
modifier = Modifier.size(AppIcons.previewSize),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import androidx.compose.ui.graphics.StrokeJoin.Companion.Round as strokeJoinRoun

val AppIcons.Illu.QrCodeTilted: ImageVector
get() {
if (_qrCodeTilted != null) {
return _qrCodeTilted!!
}

if (_qrCodeTilted != null) return _qrCodeTilted!!

_qrCodeTilted = Builder(
name = "QrCodeTilted",
defaultWidth = 120.0.dp,
defaultHeight = 80.0.dp,
viewportWidth = 120.0f,
viewportHeight = 80.0f
viewportHeight = 80.0f,
).apply {
path(
fill = null,
Expand All @@ -36,7 +36,7 @@ val AppIcons.Illu.QrCodeTilted: ImageVector
strokeLineCap = strokeCapRound,
strokeLineJoin = strokeJoinRound,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(15.56f, 56.33f)
lineTo(29.99f, 48.0f)
Expand Down Expand Up @@ -65,6 +65,7 @@ val AppIcons.Illu.QrCodeTilted: ImageVector
lineToRelative(14.43f, -8.33f)
}
}.build()

return _qrCodeTilted!!
}

Expand All @@ -77,7 +78,7 @@ private fun Preview() {
Image(
imageVector = AppIcons.Illu.QrCodeTilted,
contentDescription = null,
modifier = Modifier.size(AppIcons.previewSize)
modifier = Modifier.size(AppIcons.previewSize),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import androidx.compose.ui.graphics.StrokeJoin.Companion.Round as strokeJoinRoun

val AppIcons.Illu.WaveSignalTilted: ImageVector
get() {
if (_waveSignalTilted != null) {
return _waveSignalTilted!!
}

if (_waveSignalTilted != null) return _waveSignalTilted!!

_waveSignalTilted = Builder(
name = "WaveSignalTilted",
defaultWidth = 120.0.dp,
defaultHeight = 80.0.dp,
viewportWidth = 120.0f,
viewportHeight = 80.0f
viewportHeight = 80.0f,
).apply {
path(
fill = null,
Expand All @@ -36,7 +36,7 @@ val AppIcons.Illu.WaveSignalTilted: ImageVector
strokeLineCap = strokeCapRound,
strokeLineJoin = strokeJoinRound,
strokeLineMiter = 4.0f,
pathFillType = NonZero
pathFillType = NonZero,
) {
moveTo(93.93f, 50.48f)
arcToRelative(32.97f, 32.97f, 0.0f, false, false, -40.38f, 23.31f)
Expand All @@ -46,6 +46,7 @@ val AppIcons.Illu.WaveSignalTilted: ImageVector
arcToRelative(72.53f, 72.53f, 0.0f, false, false, -85.65f, 49.45f)
}
}.build()

return _waveSignalTilted!!
}

Expand All @@ -58,7 +59,7 @@ private fun Preview() {
Image(
imageVector = AppIcons.Illu.WaveSignalTilted,
contentDescription = null,
modifier = Modifier.size(AppIcons.previewSize)
modifier = Modifier.size(AppIcons.previewSize),
)
}
}

0 comments on commit 22ce811

Please sign in to comment.