Hooray, hooray, it's done. FlatLaf 3.0 is here 🎁 🎉 🎅 🤶 🧑🎄
BTW if you'd like to support the FlatLaf open-source project, please consider sponsoring it. Thank you very much for doing so.
Highlights
macOS themes
New light and dark themes that use macOS colors and look similar to native macOS controls:
Fonts
Packaged fonts Inter, Roboto and JetBrains Mono into JARs (available on Maven Central) and provide an easy way to use them with FlatLaf.
Rounded selection
JMenuItem
, JComboBox
, JList
and JTree
components now support rounded selection.
This is currently used only in macOS themes for menus and combo boxes, but may be used in standard themes as well in the future.
Feel free to use it in own themes to give your application a special look. See PRs for instructions.
Rounded outlined icons
JFileChooser
, JOptionPane
, JPasswordField
and JTree
got new modern rounded outlined icons:
Change Log
New features and improvements
- macOS light and dark themes: The two new themes
FlatMacLightLaf
and
FlatMacDarkLaf
use macOS colors and look similar to native macOS controls.
(PRs #533, #612 and #607) - Fonts: Packaged some fonts into JARs and provide an easy way to use them
with FlatLaf. (PRs #545, #614 and #615) At the moment there are three fonts:- Inter (https://rsms.me/inter/) - a typeface carefully crafted & designed
for computer screens - Roboto (https://fonts.google.com/specimen/Roboto) - default font on
Android and recommended for Material Design - JetBrains Mono (https://www.jetbrains.com/mono) - a monospaced typeface
- Inter (https://rsms.me/inter/) - a typeface carefully crafted & designed
- Rounded selection: Optionally use rounded selection in:
- Tree: Hide default closed/opened/leaf icons by default. Set UI value
Tree.showDefaultIcons
totrue
to show them. - ToolBar: Hover effect for button groups. (PR #534)
- Icons: New modern rounded outlined icons for
JFileChooser
,
JOptionPane
,JPasswordField
andJTree
. (PR #577)
Fixed bugs
- FileChooser: Fixed layout of (optional) accessory component and fixed too
large right margin. (issue #604; regression since implementing PR #522 in FlatLaf 2.3) - Tree:
- Fixed missing tree lines (if enabled) for wide-selected rows. (issue #598)
- Fixed scaling of tree lines and fixed alignment to expand/collapse arrows.
- Removed support for dashed tree lines.
Tree.lineTypeDashed
is now ignored.
- SwingX: Fonts in
JXHeader
,JXMonthView
,JXTaskPane
andJXTitledPanel
were not updated when changing default font.