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

Add colorMapper argument to named SvgPicture constructors #1095

Open
Joshix-1 opened this issue Aug 12, 2024 · 3 comments
Open

Add colorMapper argument to named SvgPicture constructors #1095

Joshix-1 opened this issue Aug 12, 2024 · 3 comments

Comments

@Joshix-1
Copy link

in #856 you mentioned that people should use ColorMapper and that was exactly what I wanted anyway. But as the named constructors do not have a colorMapper argument, I didn't know it existed as an option. The argument could be passed through to the SvgLoader which then could use it. That would be more convinient than having to use the unnamed constructor with the correct BytesLoader.

@Add00w
Copy link

Add00w commented Sep 1, 2024

The answer is in the same issue comment

@Joshix-1
Copy link
Author

Joshix-1 commented Sep 1, 2024

I know how to use ColorMapper. That's not the issue. I want to use the named SvgPicture constructors and use ColorMapper.

@Ali1Ammar
Copy link

currently to use ColorMapper , we need to use the loader directly (SvgAssetLoader/SvgFileLoader/SvgStringLoader/SvgBytesLoader classes) , and we can not use it with SvgPicture
which make it harder to use

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

3 participants