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

Is there any way to "bind" the svg colors to system brushes/colors? #3974

Closed
BorzillaR opened this issue Jan 18, 2021 · 1 comment
Closed
Labels
area-Images Images, SVG question team-Rendering Issue for the Rendering team

Comments

@BorzillaR
Copy link

BorzillaR commented Jan 18, 2021

Hello!

I use svg images in my app. I want them to change colors according to the current color scheme / accent colors. For-example, in toolbar items the svg colors should be consistent with the text color in different visual states/themes.

Is there any way to change svg colors at runtime?

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jan 18, 2021
@codendone
Copy link
Contributor

The current svg support is static with no object model support. The only option I can think of is to load the svg file into a buffer and search/replace the desired colors.

@StephenLPeters StephenLPeters added area-Images Images, SVG team-Rendering Issue for the Rendering team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Images Images, SVG question team-Rendering Issue for the Rendering team
Projects
None yet
Development

No branches or pull requests

3 participants