TabbedPane: tab area alignment; min/max tab widths; tab icon placement; tab width mode #199
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.
Tab area alignment
By default the tab area is aligned to the left edge.
Now you can also align it to the right, center or fill.
To use this for the whole application (allowed values are
leading
,trailing
,center
andfill
:To use this for single tabbed pane:
Minimum/maximum tab width
With this PR you can now specify minimum and maximum tab widths.
This is useful for IDE like applications where you e.g. use file names in tab titles.
With minimum tab width you can avoid small tabs for short file names.
With maximum tab width you can avoid too wide tabs for long file names.
Minimum tab width makes tabs wider:
Maximum tab width makes tabs smaller:
Tab icon placement
You can now specify the tab icon placement (relative to tab title),
which makes it easy to create tabs in a style that you know from
your smartphone or tablet.
Tab width mode
With the "width mode" you can make all tabs equal width or hide tab title of unselected tabs. Available modes:
preferred
: tab width is adjusted to tab icon and title (the default)equal
: all tabs in a tabbed pane has same widthcompact
: unselected tabs show only the tab icon, but no tab title; selected tabs show both; works only if tab has icon