Solved

Creating svg

  • 3 December 2020
  • 1 reply
  • 86 views

I want to add SVG icons to our application in the Universal GUI. When saving and thus creating a SVG icon by myself using Photoshop and Illustrator, the image doesn’t seem to change from black to white when changing to dark mode. Are there specific settings that need to be set for creating a SVG which does change color from black to white?

icon

Best answer by Tim de Lang 7 December 2020, 09:06

View original

This topic has been closed for comments

1 reply

Userlevel 3
Badge +3

Hello Marijn,

Universal will change the color of an SVG in dark and light mode only when no color has been set (a color would be something like: fill=”#000000”, etc.) for a path or other shape. When a color has been set, we assume the SVG was intended to have that color for that shape.

If you remove the color information from the SVG, it’ll change colors with the Universal theme type.

Kind regards,

Tim de Lang