Skip to main content
Solved

Creating svg

  • December 3, 2020
  • 1 reply
  • 94 views

Forum|alt.badge.img+1

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?

Best answer by Tim de Lang

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

 

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

Tim de Lang
Moderator
Forum|alt.badge.img+4
  • Moderator
  • 90 replies
  • Answer
  • December 7, 2020

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

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings