Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I finally looked into things that are not scaling properly under FlatLaf. I found only 3 issues, each associated with one commit here, to make it easier to cherrypick things.
Console
Commit 37a3cb2: The console dimensions were hardwired, so I tried to make it so that dimensions are set in terms of columns/lines computed from the active monospaced font. Also the menu bar contains only a single "Clear" command. I find this confusing because that clear command does nothing when the Log tab is selected. Since there is a 'Clear' command in the contextual menus of both tabs, I propose we remove it.
Color widgets
Commit 01459f8: It was using a hardwired height. Now it is scalable, with height matching that of a JTextField. imagej/imagej-ui-swing#90 extends this to color tables
Number widgets
Commit 95bc9b3: I could not find any reason why this code (discussed in #77) needs to exist:
scijava-ui-swing/src/main/java/org/scijava/ui/swing/widget/SwingNumberWidget.java
Lines 131 to 133 in 40bd474
A width of 50 seems arbitrary, and everything seems to work fine if we just remove that code!? @imagejan, what do you think?
FileList widgets
SwingFileListWidget
was the other place where I found hardwired dimensions, namely here:scijava-ui-swing/src/main/java/org/scijava/ui/swing/widget/SwingFileListWidget.java
Line 115 in 47c0e91
(@imagejan, without specifying dimensions the JscrollPane does collapse, but perhaps something like
JList#setPrototypeCellValue("prototype value");
could be used to set things in a 'scalable' manner?(update: edited for clarity)