-
Notifications
You must be signed in to change notification settings - Fork 3
/
ShieldSolid.svg.optimized.kt
141 lines (136 loc) · 4.87 KB
/
ShieldSolid.svg.optimized.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
package dev.tonholo.svg_to_compose.playground.ui.icon.svg
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
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
val ShieldSolidSvgOptimized: ImageVector
get() {
val current = _shieldSolidSvgOptimized
if (current != null) return current
return ImageVector.Builder(
name = "dev.tonholo.svg_to_compose.playground.ui.theme.SampleAppTheme.ShieldSolidSvgOptimized",
defaultWidth = 16.0.dp,
defaultHeight = 16.0.dp,
viewportWidth = 512.0f,
viewportHeight = 512.0f,
).apply {
// M256 0 c4.6 0 9.2 1 13.4 2.9 l188.3 79.9 c22 9.3 38.4 31 38.3 57.2 -.5 99.2 -41.3 280.7 -213.6 363.2 -16.7 8 -36.1 8 -52.8 0 C57.3 420.7 16.5 239.2 16 140 c-.1 -26.2 16.3 -47.9 38.3 -57.2 L242.7 2.9 C246.8 1 251.4 0 256 0 m0 66.8 v378 C394 378 431.1 230.1 432 141.4z
path(
fill = SolidColor(Color(0xFF1E3050)),
) {
// M 256 0
moveTo(x = 256.0f, y = 0.0f)
// c 4.6 0 9.2 1 13.4 2.9
curveToRelative(
dx1 = 4.6f,
dy1 = 0.0f,
dx2 = 9.2f,
dy2 = 1.0f,
dx3 = 13.4f,
dy3 = 2.9f,
)
// l 188.3 79.9
lineToRelative(dx = 188.3f, dy = 79.9f)
// c 22 9.3 38.4 31 38.3 57.2
curveToRelative(
dx1 = 22.0f,
dy1 = 9.3f,
dx2 = 38.4f,
dy2 = 31.0f,
dx3 = 38.3f,
dy3 = 57.2f,
)
// c -0.5 99.2 -41.3 280.7 -213.6 363.2
curveToRelative(
dx1 = -0.5f,
dy1 = 99.2f,
dx2 = -41.3f,
dy2 = 280.7f,
dx3 = -213.6f,
dy3 = 363.2f,
)
// c -16.7 8 -36.1 8 -52.8 0
curveToRelative(
dx1 = -16.7f,
dy1 = 8.0f,
dx2 = -36.1f,
dy2 = 8.0f,
dx3 = -52.8f,
dy3 = 0.0f,
)
// C 57.3 420.7 16.5 239.2 16 140
curveTo(
x1 = 57.3f,
y1 = 420.7f,
x2 = 16.5f,
y2 = 239.2f,
x3 = 16.0f,
y3 = 140.0f,
)
// c -0.1 -26.2 16.3 -47.9 38.3 -57.2
curveToRelative(
dx1 = -0.1f,
dy1 = -26.2f,
dx2 = 16.3f,
dy2 = -47.9f,
dx3 = 38.3f,
dy3 = -57.2f,
)
// L 242.7 2.9
lineTo(x = 242.7f, y = 2.9f)
// C 246.8 1 251.4 0 256 0
curveTo(
x1 = 246.8f,
y1 = 1.0f,
x2 = 251.4f,
y2 = 0.0f,
x3 = 256.0f,
y3 = 0.0f,
)
// m 0 66.8
moveToRelative(dx = 0.0f, dy = 66.8f)
// v 378
verticalLineToRelative(dy = 378.0f)
// C 394 378 431.1 230.1 432 141.4z
curveTo(
x1 = 394.0f,
y1 = 378.0f,
x2 = 431.1f,
y2 = 230.1f,
x3 = 432.0f,
y3 = 141.4f,
)
close()
}
}.build().also { _shieldSolidSvgOptimized = it }
}
@Preview
@Composable
private fun IconPreview() {
dev.tonholo.svg_to_compose.playground.ui.theme.SampleAppTheme {
Column(
verticalArrangement = Arrangement.spacedBy(8.dp),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Image(
imageVector = ShieldSolidSvgOptimized,
contentDescription = null,
modifier = Modifier
.width((512.0).dp)
.height((512.0).dp),
)
}
}
}
@Suppress("ObjectPropertyName")
private var _shieldSolidSvgOptimized: ImageVector? = null