Replies: 1 comment
-
You can use CSS to set a color preference value and use it in your code. Example: https://www.vogella.com/tutorials/EclipseEditors/article.html#adding-colors-and-fonts-preferences |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team, is there a way to extract a CSS property from a CSS file?
We want to apply a color to the GC of a Canvas. However, the GC doesn't support the
setData
API, and we can only usesetBackground
to apply color changes. To avoid hardcoding the color, we’d like to extract the color property directly from the CSS file.Is there a way to achieve this?
Simple code snippet:
Appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions