mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 05:50:53 +03:00
JIDE: JideTabbedPane: tab layout fixes for compact resize mode
This commit is contained in:
@@ -507,6 +507,29 @@ public class FlatJideTabbedPaneUI
|
||||
return lastTabInRun( _tabPane.getTabCount(), run ) == tabIndex;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void ensureCurrentRects( int leftMargin, int tabCount ) {
|
||||
int oldFitStyleBoundSize = _fitStyleBoundSize;
|
||||
int oldFitStyleFirstTabMargin = _fitStyleFirstTabMargin;
|
||||
int oldCompressedStyleNoIconRectSize = _compressedStyleNoIconRectSize;
|
||||
int oldCompressedStyleIconMargin = _compressedStyleIconMargin;
|
||||
int oldFixedStyleRectSize = _fixedStyleRectSize;
|
||||
|
||||
_fitStyleBoundSize = scale( _fitStyleBoundSize );
|
||||
_fitStyleFirstTabMargin = scale( _fitStyleFirstTabMargin );
|
||||
_compressedStyleNoIconRectSize = scale( _compressedStyleNoIconRectSize );
|
||||
_compressedStyleIconMargin = scale( _compressedStyleIconMargin );
|
||||
_fixedStyleRectSize = scale( _fixedStyleRectSize );
|
||||
|
||||
super.ensureCurrentRects( leftMargin, tabCount );
|
||||
|
||||
_fitStyleBoundSize = oldFitStyleBoundSize;
|
||||
_fitStyleFirstTabMargin = oldFitStyleFirstTabMargin;
|
||||
_compressedStyleNoIconRectSize = oldCompressedStyleNoIconRectSize;
|
||||
_compressedStyleIconMargin = oldCompressedStyleIconMargin;
|
||||
_fixedStyleRectSize = oldFixedStyleRectSize;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ensureCloseButtonCreated() {
|
||||
super.ensureCloseButtonCreated();
|
||||
|
||||
@@ -84,3 +84,5 @@ JideTabbedPane.shadow = $TabbedPane.shadow
|
||||
|
||||
JideTabbedPane.closeButtonLeftMargin = 0
|
||||
JideTabbedPane.closeButtonRightMargin = 0
|
||||
JideTabbedPane.fitStyleBoundSize = {integer}0
|
||||
JideTabbedPane.fitStyleFirstTabMargin = 0
|
||||
|
||||
@@ -492,6 +492,8 @@ JideTabbedPane.background #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.closeButtonLeftMargin 0
|
||||
JideTabbedPane.closeButtonRightMargin 0
|
||||
JideTabbedPane.contentBorderInsets 0,0,0,0 javax.swing.plaf.InsetsUIResource [UI]
|
||||
JideTabbedPane.fitStyleBoundSize 0
|
||||
JideTabbedPane.fitStyleFirstTabMargin 0
|
||||
JideTabbedPane.foreground #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.shadow #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.tabAreaBackground #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
@@ -497,6 +497,8 @@ JideTabbedPane.background #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.closeButtonLeftMargin 0
|
||||
JideTabbedPane.closeButtonRightMargin 0
|
||||
JideTabbedPane.contentBorderInsets 0,0,0,0 javax.swing.plaf.InsetsUIResource [UI]
|
||||
JideTabbedPane.fitStyleBoundSize 0
|
||||
JideTabbedPane.fitStyleFirstTabMargin 0
|
||||
JideTabbedPane.foreground #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.shadow #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.tabAreaBackground #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
@@ -488,6 +488,8 @@ JideTabbedPane.background #ccffcc javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.closeButtonLeftMargin 0
|
||||
JideTabbedPane.closeButtonRightMargin 0
|
||||
JideTabbedPane.contentBorderInsets 0,0,0,0 javax.swing.plaf.InsetsUIResource [UI]
|
||||
JideTabbedPane.fitStyleBoundSize 0
|
||||
JideTabbedPane.fitStyleFirstTabMargin 0
|
||||
JideTabbedPane.foreground #ff0000 javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.shadow #ccffcc javax.swing.plaf.ColorUIResource [UI]
|
||||
JideTabbedPane.tabAreaBackground #ccffcc javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
@@ -121,8 +121,6 @@
|
||||
+ JideTabbedPane.defaultTabBorderShadowColor #736d63 javax.swing.plaf.ColorUIResource [UI]
|
||||
+ JideTabbedPane.defaultTabColorTheme 3
|
||||
+ JideTabbedPane.defaultTabShape 2
|
||||
+ JideTabbedPane.fitStyleBoundSize 8
|
||||
+ JideTabbedPane.fitStyleFirstTabMargin 4
|
||||
+ JideTabbedPane.fitStyleIconMinWidth 24
|
||||
+ JideTabbedPane.fitStyleTextMinWidth 16
|
||||
+ JideTabbedPane.fixedStyleRectSize 60
|
||||
|
||||
@@ -121,8 +121,6 @@
|
||||
+ JideTabbedPane.defaultTabBorderShadowColor #736d63 javax.swing.plaf.ColorUIResource [UI]
|
||||
+ JideTabbedPane.defaultTabColorTheme 3
|
||||
+ JideTabbedPane.defaultTabShape 2
|
||||
+ JideTabbedPane.fitStyleBoundSize 8
|
||||
+ JideTabbedPane.fitStyleFirstTabMargin 4
|
||||
+ JideTabbedPane.fitStyleIconMinWidth 24
|
||||
+ JideTabbedPane.fitStyleTextMinWidth 16
|
||||
+ JideTabbedPane.fixedStyleRectSize 60
|
||||
|
||||
@@ -346,6 +346,8 @@ JideTabbedPane.background
|
||||
JideTabbedPane.closeButtonLeftMargin
|
||||
JideTabbedPane.closeButtonRightMargin
|
||||
JideTabbedPane.contentBorderInsets
|
||||
JideTabbedPane.fitStyleBoundSize
|
||||
JideTabbedPane.fitStyleFirstTabMargin
|
||||
JideTabbedPane.foreground
|
||||
JideTabbedPane.shadow
|
||||
JideTabbedPane.tabAreaBackground
|
||||
|
||||
Reference in New Issue
Block a user