diff --git a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/resources/icon/ViewerClose.kt b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/resources/icon/ViewerClose.kt new file mode 100644 index 0000000..93a2e28 --- /dev/null +++ b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/resources/icon/ViewerClose.kt @@ -0,0 +1,113 @@ +/* + * Flexi UI - A flexible and useful UI component library. + * Copyright (C) 2019-2023 HighCapable + * https://github.com/BetterAndroid/FlexiUI + * + * Apache License Version 2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This file is created by fankes on 2023/11/18. + */ +@file:Suppress("unused") + +package com.highcapable.flexiui.resources.icon + +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.graphics.StrokeJoin +import androidx.compose.ui.graphics.vector.path +import androidx.compose.ui.unit.dp +import com.highcapable.flexiui.resources.Icons +import com.highcapable.flexiui.resources.builder.buildImageVector + +val Icons.ViewerClose by lazy { + buildImageVector( + name = "viewer_close", + defaultWidth = 32.dp, + defaultHeight = 32.dp, + viewportWidth = 48f, + viewportHeight = 48f + ) { + path( + fillAlpha = 1.0f, + stroke = SolidColor(Color.White), + strokeAlpha = 1.0f, + strokeLineWidth = 4f, + strokeLineCap = StrokeCap.Round, + strokeLineJoin = StrokeJoin.Round, + strokeLineMiter = 1.0f, + pathFillType = PathFillType.NonZero + ) { + moveTo(6f, 16f) + curveTo(6.6347f, 17.2193f, 7.5965f, 18.3504f, 8.8228f, 19.3554f) + curveTo(12.261f, 22.1733f, 17.779f, 24f, 24f, 24f) + curveTo(30.221f, 24f, 35.739f, 22.1733f, 39.1772f, 19.3554f) + curveTo(40.4035f, 18.3504f, 41.3653f, 17.2193f, 42f, 16f) + } + path( + fillAlpha = 1.0f, + stroke = SolidColor(Color.White), + strokeAlpha = 1.0f, + strokeLineWidth = 4f, + strokeLineCap = StrokeCap.Round, + strokeLineJoin = StrokeJoin.Round, + strokeLineMiter = 1.0f, + pathFillType = PathFillType.NonZero + ) { + moveTo(28.9775f, 24f) + lineTo(31.048f, 31.7274f) + } + path( + fillAlpha = 1.0f, + stroke = SolidColor(Color.White), + strokeAlpha = 1.0f, + strokeLineWidth = 4f, + strokeLineCap = StrokeCap.Round, + strokeLineJoin = StrokeJoin.Round, + strokeLineMiter = 1.0f, + pathFillType = PathFillType.NonZero + ) { + moveTo(37.3535f, 21.3536f) + lineTo(43.0103f, 27.0104f) + } + path( + fillAlpha = 1.0f, + stroke = SolidColor(Color.White), + strokeAlpha = 1.0f, + strokeLineWidth = 4f, + strokeLineCap = StrokeCap.Round, + strokeLineJoin = StrokeJoin.Round, + strokeLineMiter = 1.0f, + pathFillType = PathFillType.NonZero + ) { + moveTo(5.00004f, 27.0103f) + lineTo(10.6569f, 21.3534f) + } + path( + fillAlpha = 1.0f, + stroke = SolidColor(Color.White), + strokeAlpha = 1.0f, + strokeLineWidth = 4f, + strokeLineCap = StrokeCap.Round, + strokeLineJoin = StrokeJoin.Round, + strokeLineMiter = 1.0f, + pathFillType = PathFillType.NonZero + ) { + moveTo(16.9278f, 31.7276f) + lineTo(18.9983f, 24.0001f) + } + } +} \ No newline at end of file diff --git a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/resources/icon/ViewerOpen.kt b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/resources/icon/ViewerOpen.kt new file mode 100644 index 0000000..e497e2b --- /dev/null +++ b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/resources/icon/ViewerOpen.kt @@ -0,0 +1,79 @@ +/* + * Flexi UI - A flexible and useful UI component library. + * Copyright (C) 2019-2023 HighCapable + * https://github.com/BetterAndroid/FlexiUI + * + * Apache License Version 2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * This file is created by fankes on 2023/11/18. + */ +@file:Suppress("unused") + +package com.highcapable.flexiui.resources.icon + +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.PathFillType +import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.graphics.StrokeCap +import androidx.compose.ui.graphics.StrokeJoin +import androidx.compose.ui.graphics.vector.path +import androidx.compose.ui.unit.dp +import com.highcapable.flexiui.resources.Icons +import com.highcapable.flexiui.resources.builder.buildImageVector + +val Icons.ViewerOpen by lazy { + buildImageVector( + name = "viewer_open", + defaultWidth = 32.dp, + defaultHeight = 32.dp, + viewportWidth = 48f, + viewportHeight = 48f + ) { + path( + fillAlpha = 1.0f, + stroke = SolidColor(Color.White), + strokeAlpha = 1.0f, + strokeLineWidth = 4f, + strokeLineCap = StrokeCap.Butt, + strokeLineJoin = StrokeJoin.Round, + strokeLineMiter = 1.0f, + pathFillType = PathFillType.NonZero + ) { + moveTo(24f, 36f) + curveTo(35.0457f, 36f, 44f, 24f, 44f, 24f) + curveTo(44f, 24f, 35.0457f, 12f, 24f, 12f) + curveTo(12.9543f, 12f, 4f, 24f, 4f, 24f) + curveTo(4f, 24f, 12.9543f, 36f, 24f, 36f) + close() + } + path( + fillAlpha = 1.0f, + stroke = SolidColor(Color.White), + strokeAlpha = 1.0f, + strokeLineWidth = 4f, + strokeLineCap = StrokeCap.Butt, + strokeLineJoin = StrokeJoin.Round, + strokeLineMiter = 1.0f, + pathFillType = PathFillType.NonZero + ) { + moveTo(24f, 29f) + curveTo(26.7614f, 29f, 29f, 26.7614f, 29f, 24f) + curveTo(29f, 21.2386f, 26.7614f, 19f, 24f, 19f) + curveTo(21.2386f, 19f, 19f, 21.2386f, 19f, 24f) + curveTo(19f, 26.7614f, 21.2386f, 29f, 24f, 29f) + close() + } + } +} \ No newline at end of file