kirill-grouchnikov / substance

A modern and high-performant Swing look-and-feel library
163 stars 110 forks source link

Platform-consistent placement of title pane contents #61

Closed kirill-grouchnikov closed 6 years ago

kirill-grouchnikov commented 6 years ago

Similar to the recent changes to option pane button order and alignment, add platform-specific defaults for alignment of title pane icon, title and buttons

expose APIs on SubstanceCortex.GlobalScope to control custom alignment

kirill-grouchnikov commented 6 years ago

The newly added API on SubstanceCortex allows configuring the placement of title pane icon, text and buttons.

The default remains the Swing one - leading icon, text right next to it and buttons as trailing. I've tried switching to the platform order, but it looks really ugly on macOS with JMenuBar right below the decorated title pane. So the PLATFORM option is there for apps with UI structure that makes it play nicely with it, but it's not the new default.