Skip to content

SvgNode Version 2.0 with CSS styleable properties, useful for transitions. One breaking change: Rename svgColor -> color - #4

Merged
Maran23 merged 1 commit into
masterfrom
svg-node-2-0
Jul 22, 2026
Merged

SvgNode Version 2.0 with CSS styleable properties, useful for transitions. One breaking change: Rename svgColor -> color#4
Maran23 merged 1 commit into
masterfrom
svg-node-2-0

Conversation

@Maran23

@Maran23 Maran23 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

All properties are now CSS styleable, which is very useful to use with transitions.

Breaking change: svgColor -> color.

For Web-Applications, there are many SVG libraries for all the different frameworks and SVG icon sets.
They all have the following in common:

  • There is either a icon= property or you can use the SVG directly, like <Home />
  • There is a size property (default is often 24)
  • There is color property

So what you have is usually this:

<Home size={48} color="red" />

<SvgIcon icon={home} size={48} color="red"/>

The API of SvgNode matches what is the de-facto standard for SVG libraries, in a way that is compatible with JavaFX.

…ions. One breaking change: Rename svgColor -> color
@Maran23
Maran23 merged commit 33dcd12 into master Jul 22, 2026
1 check passed
@Maran23
Maran23 deleted the svg-node-2-0 branch July 27, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant