Support for .theme.json under FlatLaf?

11 views
Skip to first unread message

Stephen Zander

unread,
Nov 10, 2021, 12:47:53 AM11/10/21
to SQL Workbench/J - DBMS independent SQL tool
Does SQL/Workbenc-J's use of FlatLaf support third party themes?

https://www.formdev.com/flatlaf/themes/ suggests its possible to influence the look and field using .theme.json files.

Having just swapped to dark themes everywhere, I'd like to override some of the non-editor configuration in SQL/Workbench but can't see how to do so.

Is this a viable approach?

Thomas Kellerer

unread,
Nov 10, 2021, 1:15:54 AM11/10/21
to sql-wo...@googlegroups.com
You can customize the built-in themes by putting a flatlaf.properties into the "ext" directory of SQL Workbench

https://www.formdev.com/flatlaf/properties-files/

If you are using a filesystem that is case sensitive (e.g. Linux), you probably need to use CamelCase filenames, e.g. FlatLaf.properties or FlatLafDark.properties.

https://www.formdev.com/flatlaf/how-to-customize/#properties_load_order

There is already a FlatLaf.properties built-in


https://codeberg.org/sql-workbench/workbench/src/branch/master/src/main/resources/workbench/resource/FlatLaf.properties

but the values are overwritten if you define an external file.

Thomas
Reply all
Reply to author
Forward
0 new messages