FlatLaf icon indicating copy to clipboard operation
FlatLaf copied to clipboard

Tree: rounded selection

Open DevCharly opened this issue 3 years ago • 1 comments

This PR enables using "rounded" selection for tree selection.

This is not yet used in any theme, but intended to be used for macOS themes (see PR #533) and future Windows 11 style themes.

Perhaps this should also be used for existing themes to make tree selection more beautiful.

Example

grafik

UI properties for above screenshot (see Application properties files):

Tree.selectionInsets = 0,1,0,1
Tree.selectionArc = 6

DevCharly avatar Jun 02 '22 10:06 DevCharly

Non-wide selection is also supported:

grafik

Tree.wideSelection = false
Tree.selectionInsets = 0,0,0,0
Tree.selectionArc = 6

Or with a gap:

grafik

Tree.wideSelection = false
Tree.selectionInsets = 1,0,0,0
Tree.selectionArc = 6

DevCharly avatar Jun 03 '22 07:06 DevCharly

The PR is merged. Don't know why GitHub did not recognize it.

DevCharly avatar Oct 30 '22 09:10 DevCharly