74 views
in Embedded Wizard Studio by

Hi everyone,

I am working with SVG files that contain multiple paths in EmWi. My goal is to dynamically change specific colors within these SVGs using a color variable.

For example:

  • I want to change all blue areas (example hex: #0000FF) in my SVG to a custom color defined by a variable (color_block).
  • I am using the Views::SVG class to display the images and I’ve checked the documentation but i am unsure how to target specific colors inside the SVG for dynamic changes.

Is there a way in EmWi to modify specific fill colors directly or do I need to adjust the SVG paths manually before importing them?
Any suggestions or examples of how to handle this would be really helpful!

Thanks in advance

1 Answer

0 votes
by

Hello,

please see the section Determine default colors for the SVG image.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...