-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
2,807 additions
and
4 deletions.
There are no files selected for viewing
196 changes: 196 additions & 0 deletions
196
app/src/main/java/com/infomaniak/swisstransfer/ui/icons/illu/EnglishFlag.kt
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,196 @@ | ||
package com.infomaniak.swisstransfer.ui.icons.illu | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero | ||
import androidx.compose.ui.graphics.SolidColor | ||
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt | ||
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
import androidx.compose.ui.graphics.vector.ImageVector.Builder | ||
import androidx.compose.ui.graphics.vector.group | ||
import androidx.compose.ui.graphics.vector.path | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.infomaniak.swisstransfer.ui.icons.AppIcons | ||
|
||
val AppIcons.EnglishFlag: ImageVector | ||
get() { | ||
if (_englishFlag != null) { | ||
return _englishFlag!! | ||
} | ||
_englishFlag = Builder( | ||
name = "EnglishFlag", | ||
defaultWidth = 24.0.dp, | ||
defaultHeight = 24.0.dp, | ||
viewportWidth = 24.0f, | ||
viewportHeight = 24.0f | ||
).apply { | ||
group { | ||
path( | ||
fill = SolidColor(Color(0xFF0B5394)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(1.333f, 3.0f) | ||
horizontalLineToRelative(21.334f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 24.0f, 4.333f) | ||
verticalLineToRelative(15.334f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 22.667f, 21.0f) | ||
horizontalLineTo(1.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 0.0f, 19.667f) | ||
verticalLineTo(4.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 1.333f, 3.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFFFFFF)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(12.0f, 11.667f) | ||
lineTo(24.0f, 3.0f) | ||
verticalLineToRelative(3.333f) | ||
lineToRelative(-6.667f, 4.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFD0142C)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(14.667f, 10.334f) | ||
lineTo(24.0f, 3.667f) | ||
verticalLineTo(5.0f) | ||
lineToRelative(-8.0f, 5.334f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFFFFFF)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(12.0f, 13.667f) | ||
lineTo(0.0f, 22.334f) | ||
verticalLineToRelative(-3.333f) | ||
lineToRelative(6.667f, -4.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFD0142C)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(9.333f, 15.0f) | ||
lineTo(0.0f, 21.667f) | ||
verticalLineToRelative(-1.333f) | ||
lineTo(8.0f, 15.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFFFFFF)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(12.0f, 11.667f) | ||
lineTo(0.0f, 3.0f) | ||
verticalLineToRelative(3.333f) | ||
lineToRelative(6.667f, 4.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFD0142C)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(9.333f, 10.334f) | ||
lineTo(0.0f, 3.667f) | ||
verticalLineTo(5.0f) | ||
lineToRelative(8.0f, 5.334f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFFFFFF)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(12.0f, 13.667f) | ||
lineToRelative(12.0f, 8.667f) | ||
verticalLineToRelative(-3.333f) | ||
lineToRelative(-6.667f, -4.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFD0142C)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(14.667f, 15.0f) | ||
lineTo(24.0f, 21.667f) | ||
verticalLineToRelative(-1.333f) | ||
lineTo(16.0f, 15.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFFFFFF)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(0.0f, 15.0f) | ||
verticalLineTo(9.667f) | ||
horizontalLineToRelative(24.0f) | ||
verticalLineTo(15.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFFFFFF)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(9.333f, 3.0f) | ||
horizontalLineToRelative(5.333f) | ||
verticalLineToRelative(18.667f) | ||
horizontalLineTo(9.333f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFD0142C)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(10.667f, 3.0f) | ||
horizontalLineToRelative(2.667f) | ||
verticalLineToRelative(18.667f) | ||
horizontalLineToRelative(-2.667f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFD0142C)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(0.0f, 13.667f) | ||
verticalLineTo(11.0f) | ||
horizontalLineToRelative(24.0f) | ||
verticalLineToRelative(2.667f) | ||
close() | ||
} | ||
} | ||
} | ||
.build() | ||
return _englishFlag!! | ||
} | ||
|
||
private var _englishFlag: ImageVector? = null | ||
|
||
@Preview | ||
@Composable | ||
private fun Preview() { | ||
Box(modifier = Modifier.padding(12.dp)) { | ||
Image(imageVector = AppIcons.EnglishFlag, contentDescription = "") | ||
} | ||
} |
104 changes: 104 additions & 0 deletions
104
app/src/main/java/com/infomaniak/swisstransfer/ui/icons/illu/FrenchFlag.kt
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,104 @@ | ||
package com.infomaniak.swisstransfer.ui.icons.illu | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero | ||
import androidx.compose.ui.graphics.SolidColor | ||
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt | ||
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
import androidx.compose.ui.graphics.vector.ImageVector.Builder | ||
import androidx.compose.ui.graphics.vector.group | ||
import androidx.compose.ui.graphics.vector.path | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.infomaniak.swisstransfer.ui.icons.AppIcons | ||
|
||
val AppIcons.FrenchFlag: ImageVector | ||
get() { | ||
if (_frenchFlag != null) { | ||
return _frenchFlag!! | ||
} | ||
_frenchFlag = Builder( | ||
name = "FrenchFlag", | ||
defaultWidth = 24.0.dp, | ||
defaultHeight = 24.0.dp, | ||
viewportWidth = 24.0f, | ||
viewportHeight = 24.0f | ||
).apply { | ||
group { | ||
path( | ||
fill = SolidColor(Color(0xFF0B5394)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(1.333f, 3.0f) | ||
horizontalLineToRelative(21.334f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 24.0f, 4.333f) | ||
verticalLineToRelative(15.334f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 22.667f, 21.0f) | ||
horizontalLineTo(1.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 0.0f, 19.667f) | ||
verticalLineTo(4.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 1.333f, 3.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFE70E0E)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(1.333f, 3.0f) | ||
horizontalLineToRelative(21.334f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 24.0f, 4.333f) | ||
verticalLineToRelative(16.001f) | ||
arcToRelative(1.333f, 1.333f, 0.0f, false, true, -1.333f, 1.333f) | ||
horizontalLineTo(1.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 0.0f, 20.334f) | ||
verticalLineTo(4.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 1.333f, 3.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFF0B5394)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(0.0f, 4.333f) | ||
curveTo(0.0f, 3.597f, 0.597f, 3.0f, 1.333f, 3.0f) | ||
horizontalLineTo(8.0f) | ||
verticalLineToRelative(18.667f) | ||
horizontalLineTo(1.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 0.0f, 20.333f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFFFFFF)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(8.0f, 3.0f) | ||
horizontalLineToRelative(8.0f) | ||
verticalLineToRelative(18.667f) | ||
horizontalLineTo(8.0f) | ||
close() | ||
} | ||
} | ||
} | ||
.build() | ||
return _frenchFlag!! | ||
} | ||
|
||
private var _frenchFlag: ImageVector? = null | ||
|
||
@Preview | ||
@Composable | ||
private fun Preview() { | ||
Box(modifier = Modifier.padding(12.dp)) { | ||
Image(imageVector = AppIcons.FrenchFlag, contentDescription = "") | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
app/src/main/java/com/infomaniak/swisstransfer/ui/icons/illu/GermanFlag.kt
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,86 @@ | ||
package com.infomaniak.swisstransfer.ui.icons.illu | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero | ||
import androidx.compose.ui.graphics.SolidColor | ||
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt | ||
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
import androidx.compose.ui.graphics.vector.ImageVector.Builder | ||
import androidx.compose.ui.graphics.vector.group | ||
import androidx.compose.ui.graphics.vector.path | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.infomaniak.swisstransfer.ui.icons.AppIcons | ||
|
||
val AppIcons.GermanFlag: ImageVector | ||
get() { | ||
if (_germanFlag != null) { | ||
return _germanFlag!! | ||
} | ||
_germanFlag = Builder( | ||
name = "GermanFlag", | ||
defaultWidth = 24.0.dp, | ||
defaultHeight = 24.0.dp, | ||
viewportWidth = 24.0f, | ||
viewportHeight = 24.0f | ||
).apply { | ||
group { | ||
path( | ||
fill = SolidColor(Color(0xFFE70E0E)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(1.333f, 3.0f) | ||
horizontalLineToRelative(21.334f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 24.0f, 4.333f) | ||
verticalLineToRelative(15.334f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 22.667f, 21.0f) | ||
horizontalLineTo(1.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 0.0f, 19.667f) | ||
verticalLineTo(4.333f) | ||
arcTo(1.333f, 1.333f, 0.0f, false, true, 1.333f, 3.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFF000000)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(0.0f, 3.0f) | ||
horizontalLineToRelative(24.0f) | ||
verticalLineToRelative(6.0f) | ||
horizontalLineTo(0.0f) | ||
close() | ||
} | ||
path( | ||
fill = SolidColor(Color(0xFFFDDA25)), stroke = null, strokeLineWidth = | ||
0.0f, strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = | ||
4.0f, pathFillType = NonZero | ||
) { | ||
moveTo(0.0f, 15.667f) | ||
horizontalLineToRelative(24.0f) | ||
verticalLineToRelative(6.0f) | ||
horizontalLineTo(0.0f) | ||
close() | ||
} | ||
} | ||
} | ||
.build() | ||
return _germanFlag!! | ||
} | ||
|
||
private var _germanFlag: ImageVector? = null | ||
|
||
@Preview | ||
@Composable | ||
private fun Preview() { | ||
Box(modifier = Modifier.padding(12.dp)) { | ||
Image(imageVector = AppIcons.GermanFlag, contentDescription = "") | ||
} | ||
} |
Oops, something went wrong.