JMetro Version 5.2 Released
Learn more about the newest additions to JMetro!
Join the DZone community and get the full member experience.
Join For FreeA new update to JMetro has just been released. Two new control styles were added: Titled Pane and Accordion. In addition, there have also been tweaks to existing styles and bug fixes. Finally, JMetro is now available through Maven Central.
In this post, I’ll go into more detail about JMetro version 5.2.
JMetro Version 5.2 Details
New Accordion and Titled Pane Styles
Accordion and Titled Pane dark and light styles were added. These are not part of Fluent Design and so are original to JMetro. These styles were made to work in harmony with the rest of the JMetro-Fluent-Design-inspired styles.
I’m just going to show the Accordion styles, as the Accordion control is composed of Titled Panes (though there still needs to be specific tweaks for the Accordion).
Accordion – JMetro light theme |
Accordion – JMetro dark theme |
Other Improvements
Here’s a list of other additions and improvements:
- Tweaked Text Inputs dark theme (Text Field, Password Field, and Text Area)
The following pictures show the previous and new Text Field styles. The new styles for Password Field and Text Area are similar.
Text Field – JMetro version 5.0 |
Text Field – JMetro new version 5.2 |
- New Tooltip dark style and tweaked light style
The Tooltip light and dark style were the same in the previous version:
Tooltip – JMetro version 5.0 |
In the new version, a new dark style was created and the light style was tweaked:
Tooltip – new JMetro version 5.2 light theme |
Tooltip – new JMetro version 5.2 dark theme |
Here is a list of other tweaks and fixes:
- Radio Button color wasn’t correct when the mouse is hovering
- Disabled menu item background color wasn’t correct when the mouse is hover/pressed/focused
- New Titled Pane light and dark style
- Wrong border on Button hover for light theme
- Text input dark theme disabled style looks too similar to the normal style
- Gradle wrapper wasn’t being pushed to the repo
Wrapping Up
JMetro continues to evolve in an interactive fashion. Sometimes, some styles that were already created are later tweaked and improved in a newer version. That’s also the case for version 5.2.
In this version, new styles were added for two new controls: Titled Pane and Accordion; other controls styles were tweaked and some bugs were fixed. As of version 5.2, JMetro is now also available through Maven Central.
For this version, I’d like to thank Pavel Erokhin (MairwunNx) for creating detailed issues in the issue tracker and sometimes with suggested fixes. I’d also like to thank Andres Almiray (@aalmiray) for the changes to the Gradle script that make uploading to Maven Central possible. This is what open source is all about.
I believe that for free, open-source software (FOSS) to thrive, users need to contribute back in some way by ideally either submitting PRs, sponsoring the project, creating your own FOSS, or contributing back to the JDK, JavaFX project, or whatever way there is a meaningful added value to the community.
Remember, there ain’t no such thing as a free lunch. In the end, we all win.
Here’s what I have planned next:
- Tree Table styles
- Dialog styles
- Accent color constants
As usual, follow me on twitter (@P_Duke) to get the latest updates.
Take care!
Published at DZone with permission of Pedro Duque Vieira, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments