/*
 * ImageToolbox is an image editor for android
 * Copyright (c) 2026 T8RIN (Malik Mukhametzyanov)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * 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.
 *
 * You should have received a copy of the Apache License
 * along with this program.  If not, see <http://www.apache.org/licenses/LICENSE-2.0>.
 */

package com.t8rin.imagetoolbox.core.resources.icons

import com.t8rin.imagetoolbox.core.resources.Icons
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.unit.dp

val Icons.Outlined.Stylus: ImageVector by lazy(LazyThreadSafetyMode.NONE) {
    ImageVector.Builder(
        name = "StylusFountainPen",
        defaultWidth = 24.dp,
        defaultHeight = 24.dp,
        viewportWidth = 24f,
        viewportHeight = 24f
    ).apply {
        path(fill = SolidColor(Color.Black)) {
            moveTo(18.727f, 8.55f)
            curveToRelative(-0.044f, -0.177f, -0.137f, -0.336f, -0.279f, -0.478f)
            lineToRelative(-5.732f, -5.281f)
            curveToRelative(-0.195f, -0.195f, -0.433f, -0.292f, -0.716f, -0.292f)
            reflectiveCurveToRelative(-0.522f, 0.097f, -0.716f, 0.292f)
            lineToRelative(-5.732f, 5.281f)
            curveToRelative(-0.141f, 0.142f, -0.234f, 0.301f, -0.279f, 0.478f)
            curveToRelative(-0.044f, 0.177f, -0.049f, 0.363f, -0.013f, 0.557f)
            lineToRelative(1.937f, 8.12f)
            curveToRelative(0.053f, 0.248f, 0.177f, 0.447f, 0.372f, 0.597f)
            reflectiveCurveToRelative(0.416f, 0.226f, 0.663f, 0.226f)
            lineToRelative(7.536f, -0f)
            curveToRelative(0.248f, 0f, 0.469f, -0.075f, 0.663f, -0.226f)
            reflectiveCurveToRelative(0.318f, -0.349f, 0.372f, -0.597f)
            lineToRelative(1.937f, -8.12f)
            curveToRelative(0.035f, -0.195f, 0.031f, -0.38f, -0.013f, -0.557f)
            close()
            moveTo(14.919f, 15.927f)
            lineToRelative(-5.838f, 0f)
            lineToRelative(-1.619f, -6.714f)
            lineToRelative(3.476f, -3.211f)
            verticalLineToRelative(2.813f)
            curveToRelative(-0.248f, 0.177f, -0.442f, 0.398f, -0.584f, 0.663f)
            curveToRelative(-0.142f, 0.265f, -0.212f, 0.557f, -0.212f, 0.876f)
            curveToRelative(0f, 0.513f, 0.181f, 0.951f, 0.544f, 1.314f)
            curveToRelative(0.363f, 0.363f, 0.8f, 0.544f, 1.314f, 0.544f)
            reflectiveCurveToRelative(0.951f, -0.181f, 1.314f, -0.544f)
            curveToRelative(0.363f, -0.363f, 0.544f, -0.8f, 0.544f, -1.314f)
            curveToRelative(0f, -0.318f, -0.071f, -0.61f, -0.212f, -0.876f)
            curveToRelative(-0.141f, -0.265f, -0.336f, -0.486f, -0.584f, -0.663f)
            lineToRelative(-0f, -2.813f)
            lineToRelative(3.476f, 3.211f)
            lineToRelative(-1.619f, 6.714f)
            close()
        }
        path(fill = SolidColor(Color.Black)) {
            moveTo(8.22f, 18.846f)
            lineTo(15.78f, 18.846f)
            arcTo(
                0.997f,
                0.997f,
                0f,
                isMoreThanHalf = false,
                isPositiveArc = true,
                16.777f,
                19.843f
            )
            lineTo(16.777f, 20.503f)
            arcTo(0.997f, 0.997f, 0f, isMoreThanHalf = false, isPositiveArc = true, 15.78f, 21.5f)
            lineTo(8.22f, 21.5f)
            arcTo(0.997f, 0.997f, 0f, isMoreThanHalf = false, isPositiveArc = true, 7.223f, 20.503f)
            lineTo(7.223f, 19.843f)
            arcTo(0.997f, 0.997f, 0f, isMoreThanHalf = false, isPositiveArc = true, 8.22f, 18.846f)
            close()
        }
    }.build()
}

val Icons.TwoTone.Stylus: ImageVector by lazy(LazyThreadSafetyMode.NONE) {
    ImageVector.Builder(
        name = "TwoToneStylusFountainPen",
        defaultWidth = 24.dp,
        defaultHeight = 24.dp,
        viewportWidth = 24f,
        viewportHeight = 24f
    ).apply {
        path(fill = SolidColor(Color.Black)) {
            moveTo(18.727f, 8.55f)
            curveToRelative(-0.044f, -0.177f, -0.137f, -0.336f, -0.279f, -0.478f)
            lineToRelative(-5.732f, -5.281f)
            curveToRelative(-0.195f, -0.195f, -0.433f, -0.292f, -0.716f, -0.292f)
            reflectiveCurveToRelative(-0.522f, 0.097f, -0.716f, 0.292f)
            lineToRelative(-5.732f, 5.281f)
            curveToRelative(-0.141f, 0.142f, -0.234f, 0.301f, -0.279f, 0.478f)
            curveToRelative(-0.044f, 0.177f, -0.049f, 0.363f, -0.013f, 0.557f)
            lineToRelative(1.937f, 8.12f)
            curveToRelative(0.053f, 0.248f, 0.177f, 0.447f, 0.372f, 0.597f)
            reflectiveCurveToRelative(0.416f, 0.226f, 0.663f, 0.226f)
            lineToRelative(7.536f, -0f)
            curveToRelative(0.248f, 0f, 0.469f, -0.075f, 0.663f, -0.226f)
            reflectiveCurveToRelative(0.318f, -0.349f, 0.372f, -0.597f)
            lineToRelative(1.937f, -8.12f)
            curveToRelative(0.035f, -0.195f, 0.031f, -0.38f, -0.013f, -0.557f)
            close()
            moveTo(14.919f, 15.927f)
            lineToRelative(-5.838f, 0f)
            lineToRelative(-1.619f, -6.714f)
            lineToRelative(3.476f, -3.211f)
            verticalLineToRelative(2.813f)
            curveToRelative(-0.248f, 0.177f, -0.442f, 0.398f, -0.584f, 0.663f)
            curveToRelative(-0.142f, 0.265f, -0.212f, 0.557f, -0.212f, 0.876f)
            curveToRelative(0f, 0.513f, 0.181f, 0.951f, 0.544f, 1.314f)
            curveToRelative(0.363f, 0.363f, 0.8f, 0.544f, 1.314f, 0.544f)
            reflectiveCurveToRelative(0.951f, -0.181f, 1.314f, -0.544f)
            curveToRelative(0.363f, -0.363f, 0.544f, -0.8f, 0.544f, -1.314f)
            curveToRelative(0f, -0.318f, -0.071f, -0.61f, -0.212f, -0.876f)
            curveToRelative(-0.141f, -0.265f, -0.336f, -0.486f, -0.584f, -0.663f)
            lineToRelative(-0f, -2.813f)
            lineToRelative(3.476f, 3.211f)
            lineToRelative(-1.619f, 6.714f)
            close()
        }
        path(fill = SolidColor(Color.Black)) {
            moveTo(8.22f, 18.846f)
            lineTo(15.78f, 18.846f)
            arcTo(
                0.997f,
                0.997f,
                0f,
                isMoreThanHalf = false,
                isPositiveArc = true,
                16.777f,
                19.843f
            )
            lineTo(16.777f, 20.503f)
            arcTo(0.997f, 0.997f, 0f, isMoreThanHalf = false, isPositiveArc = true, 15.78f, 21.5f)
            lineTo(8.22f, 21.5f)
            arcTo(0.997f, 0.997f, 0f, isMoreThanHalf = false, isPositiveArc = true, 7.223f, 20.503f)
            lineTo(7.223f, 19.843f)
            arcTo(0.997f, 0.997f, 0f, isMoreThanHalf = false, isPositiveArc = true, 8.22f, 18.846f)
            close()
        }
        path(
            fill = SolidColor(Color.Black),
            fillAlpha = 0.3f,
            strokeAlpha = 0.3f
        ) {
            moveTo(14.919f, 15.927f)
            lineToRelative(-5.838f, 0f)
            lineToRelative(-1.619f, -6.714f)
            lineToRelative(3.476f, -3.211f)
            lineToRelative(0f, 2.813f)
            curveToRelative(-0.248f, 0.177f, -0.442f, 0.398f, -0.584f, 0.663f)
            curveToRelative(-0.142f, 0.265f, -0.212f, 0.557f, -0.212f, 0.876f)
            curveToRelative(0f, 0.513f, 0.181f, 0.951f, 0.544f, 1.314f)
            reflectiveCurveToRelative(0.8f, 0.544f, 1.314f, 0.544f)
            reflectiveCurveToRelative(0.951f, -0.181f, 1.314f, -0.544f)
            reflectiveCurveToRelative(0.544f, -0.8f, 0.544f, -1.314f)
            curveToRelative(0f, -0.318f, -0.071f, -0.61f, -0.212f, -0.876f)
            curveToRelative(-0.141f, -0.265f, -0.336f, -0.486f, -0.584f, -0.663f)
            lineToRelative(-0f, -2.813f)
            lineToRelative(3.476f, 3.211f)
            lineToRelative(-1.619f, 6.714f)
            close()
        }
    }.build()
}