Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add a configuration option to control the autoMirror value for the generated icons? #31

Open
xiaoyvyv opened this issue Nov 13, 2024 · 1 comment

Comments

@xiaoyvyv
Copy link

Can you add a configuration option to control the autoMirror value for the generated icons?

autoMirror = true|false

public val DefaultGroup.chevron_right: ImageVector
    get() {
        if (_chevron_right != null) {
            return _chevron_right!!
        }
        _chevron_right = Builder(name = "chevron_right", defaultWidth = 24.0.dp, defaultHeight =
                24.0.dp, viewportWidth = 24.0f, viewportHeight = 24.0f, autoMirror = true ).apply {
            path(fill = SolidColor(Color(0x00000000)), stroke = SolidColor(Color(0xFF687080)),
                    strokeLineWidth = 2.0f, strokeLineCap = Round, strokeLineJoin =
                    StrokeJoin.Companion.Round, strokeLineMiter = 4.0f, pathFillType = NonZero) {
                moveTo(9.0f, 18.0f)
                lineTo(15.0f, 12.0f)
                lineTo(9.0f, 6.0f)
            }
        }
        .build()
        return _chevron_right!!
    }

private var _chevron_right: ImageVector? = null

@Preview
@Composable
private fun Preview(): Unit {
    Box(modifier = Modifier.padding(12.dp)) {
        Image(imageVector = DefaultGroup.chevron_right, contentDescription = "")
    }
}
@ManonPolle
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants