FontAwesomeFX 8.2 released
I made some refactorings and have now released FontAwesomeFX 8.2 containing some (more or less) minor changes:
- Icon enums renamed: ‘*Name’ is now ‘*Icons’ (e.g. ‘FontAwesomeIcons’ instead of ‘FontAwesomeIconName’)
- added a ‘BLANK’ icon to both FontAwesomeIcons and WeatherIcons which is in fact unicode ‘\u0020’ (SPACE) (@dlemmermann! ;-))
- GlyphsBuilder: icon(GlyphIconName glyphIconName) is now glyph(GlyphIcons glyph)
- removed unnecessary code
- FXML:
- ‘iconName’ is now ‘glyphName’
- ‘glyphStyleClass’ is now ‘styleClass’: no extra GlyphStyle class just assign the class via Section “JavaFX CSS” -> Style Class.
So if you have already used FontAwesomeFX 8.1 you will also have to adjust your code, sorry for the inconvenience but I think now its a more reasonable wording for future releases!
Some FXML Examples:
SceneBuilder:
Hint:
I planned to make the Icon choice in SceneBuilder more comfortable. I wanted to provide a drop-down instead of need to look up the right name and to put it into the TextField. But unfortunately by now I didn’t make it to get SceneBuilder to work with the Glyphs-choice as enum. It worked very well with just one GlyphIcon on the pane but when a 2nd one is placed SB crashed. But I will continue to try to find out what went wrong – stay tuned.
Get 8.2:
Download Binaries: Download
Sources available at Bitbucket
Maven:
<dependency> <groupId>de.jensd</groupId> <artifactId>fontawesomefx</artifactId> <version>8.2</version> </dependency>
Hi Jens,
when i to add an Margin to a FontAwesomeIcon in the SceneBuilder working the Insets as expected during the SceneBuilder is open. But when I close the SceneBuilder and try a little later to open the file in NetBeans 8.02 with doubleclick I become an exception: java.io.IOException: javafx.fxml.LoadException: Caused by: com.sun.javafx.fxml.PropertyNotFoundException: Static property “margin” does not exist or is read-only.
In the fxml are follow tag-structure (in a HBox):
When I remove the margin from hand I can then open the file again in the SceneBuilder.
I use your version 8.2 in my project.
Greetings Peter
Interesting ;-):
1. if I do the same and open it via double-click in NetBeans I got the same exception.
2. if I start SceneBuilder directly and open the fxml file in SB it works…
hm the tag-structure is during posting removed…
Thanks For Your efforts
Great work! Is it possible to change the glyphname with css? I want to use the icon for a ToggleButton but can’t get it working with just css.
Thanks!
Next version is going to have support for css property like “-glyph-name: STAR”