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

希望支持修改透明度 fill-opacity #14

Open
JanzTam opened this issue Nov 17, 2021 · 3 comments
Open

希望支持修改透明度 fill-opacity #14

JanzTam opened this issue Nov 17, 2021 · 3 comments

Comments

@JanzTam
Copy link

JanzTam commented Nov 17, 2021

生成 iconfont 文件时,希望增加一个属性控制透明度, fill-opacity

case IconNames.arrow_right_gray_s:
        svgXml = '''
          <svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
            <path
              d="M499.541333 222.72l258.986667 259.072a42.666667 42.666667 0 0 1 0 60.416L499.541333 801.194667A42.666667 42.666667 0 0 1 426.666667 771.072V252.928a42.666667 42.666667 0 0 1 72.874666-30.122667z"
              fill="''' + getColor(0, color, colors, '#13131A') + '''"
              fill-opacity=".3"
            />
          </svg>
        ''';
        break;
@suyulin
Copy link

suyulin commented Dec 1, 2021

#15

@suyulin
Copy link

suyulin commented Dec 2, 2021

@fwh1990 大佬什么时候通过以下,pr

@JanzTam
Copy link
Author

JanzTam commented Sep 7, 2022

自己用 python 写了个生成工具。在这个库的基础上,支持 Color 属性、自定义类名、透明度。 🙄

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