mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 15:07:11 -06:00
TabbedPane: always use chevron arrows (even in IntelliJ and Darcula themes)
This commit is contained in:
@@ -108,7 +108,7 @@ import com.formdev.flatlaf.util.UIScale;
|
|||||||
*
|
*
|
||||||
* <!-- FlatTabbedPaneUI -->
|
* <!-- FlatTabbedPaneUI -->
|
||||||
*
|
*
|
||||||
* @uiDefault Component.arrowType String triangle (default) or chevron
|
* @uiDefault TabbedPane.arrowType String chevron (default) or triangle
|
||||||
* @uiDefault TabbedPane.disabledForeground Color
|
* @uiDefault TabbedPane.disabledForeground Color
|
||||||
* @uiDefault TabbedPane.selectedBackground Color optional
|
* @uiDefault TabbedPane.selectedBackground Color optional
|
||||||
* @uiDefault TabbedPane.selectedForeground Color
|
* @uiDefault TabbedPane.selectedForeground Color
|
||||||
@@ -1380,7 +1380,7 @@ public class FlatTabbedPaneUI
|
|||||||
|
|
||||||
public FlatMoreTabsButton() {
|
public FlatMoreTabsButton() {
|
||||||
// this method is invoked before installDefaults(), so we can not use color fields here
|
// this method is invoked before installDefaults(), so we can not use color fields here
|
||||||
super( SOUTH, UIManager.getString( "Component.arrowType" ),
|
super( SOUTH, UIManager.getString( "TabbedPane.arrowType" ),
|
||||||
UIManager.getColor( "TabbedPane.foreground" ),
|
UIManager.getColor( "TabbedPane.foreground" ),
|
||||||
UIManager.getColor( "TabbedPane.disabledForeground" ), null,
|
UIManager.getColor( "TabbedPane.disabledForeground" ), null,
|
||||||
UIManager.getColor( "TabbedPane.hoverColor" ) );
|
UIManager.getColor( "TabbedPane.hoverColor" ) );
|
||||||
@@ -1527,7 +1527,7 @@ public class FlatTabbedPaneUI
|
|||||||
|
|
||||||
protected FlatScrollableTabButton( int direction ) {
|
protected FlatScrollableTabButton( int direction ) {
|
||||||
// this method is invoked before installDefaults(), so we can not use color fields here
|
// this method is invoked before installDefaults(), so we can not use color fields here
|
||||||
super( direction, UIManager.getString( "Component.arrowType" ),
|
super( direction, UIManager.getString( "TabbedPane.arrowType" ),
|
||||||
UIManager.getColor( "TabbedPane.foreground" ),
|
UIManager.getColor( "TabbedPane.foreground" ),
|
||||||
UIManager.getColor( "TabbedPane.disabledForeground" ), null,
|
UIManager.getColor( "TabbedPane.disabledForeground" ), null,
|
||||||
UIManager.getColor( "TabbedPane.hoverColor" ) );
|
UIManager.getColor( "TabbedPane.hoverColor" ) );
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ Component.innerFocusWidth={float}0.5
|
|||||||
Component.innerOutlineWidth={float}1
|
Component.innerOutlineWidth={float}1
|
||||||
Component.arc=5
|
Component.arc=5
|
||||||
Component.minimumWidth=64
|
Component.minimumWidth=64
|
||||||
|
# allowed values: chevron or triangle
|
||||||
Component.arrowType=chevron
|
Component.arrowType=chevron
|
||||||
Component.hideMnemonics=true
|
Component.hideMnemonics=true
|
||||||
|
|
||||||
@@ -559,6 +560,8 @@ TabbedPane.contentBorderInsets=null
|
|||||||
TabbedPane.hiddenTabsNavigation=moreTabsButton
|
TabbedPane.hiddenTabsNavigation=moreTabsButton
|
||||||
TabbedPane.tabAreaAlignment=leading
|
TabbedPane.tabAreaAlignment=leading
|
||||||
TabbedPane.tabAlignment=center
|
TabbedPane.tabAlignment=center
|
||||||
|
# allowed values: chevron or triangle
|
||||||
|
TabbedPane.arrowType=chevron
|
||||||
|
|
||||||
TabbedPane.closeIcon=com.formdev.flatlaf.icons.FlatTabbedPaneCloseIcon
|
TabbedPane.closeIcon=com.formdev.flatlaf.icons.FlatTabbedPaneCloseIcon
|
||||||
TabbedPane.closeSize=16,16
|
TabbedPane.closeSize=16,16
|
||||||
|
|||||||
@@ -909,6 +909,7 @@ SplitPaneUI com.formdev.flatlaf.ui.FlatSplitPaneUI
|
|||||||
|
|
||||||
#---- TabbedPane ----
|
#---- TabbedPane ----
|
||||||
|
|
||||||
|
TabbedPane.arrowType chevron
|
||||||
TabbedPane.background #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
TabbedPane.background #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
||||||
TabbedPane.closeArc 4
|
TabbedPane.closeArc 4
|
||||||
TabbedPane.closeCrossFilledSize 7.5
|
TabbedPane.closeCrossFilledSize 7.5
|
||||||
|
|||||||
@@ -914,6 +914,7 @@ SplitPaneUI com.formdev.flatlaf.ui.FlatSplitPaneUI
|
|||||||
|
|
||||||
#---- TabbedPane ----
|
#---- TabbedPane ----
|
||||||
|
|
||||||
|
TabbedPane.arrowType chevron
|
||||||
TabbedPane.background #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
TabbedPane.background #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
||||||
TabbedPane.closeArc 4
|
TabbedPane.closeArc 4
|
||||||
TabbedPane.closeCrossFilledSize 7.5
|
TabbedPane.closeCrossFilledSize 7.5
|
||||||
|
|||||||
@@ -902,6 +902,7 @@ SplitPaneUI com.formdev.flatlaf.ui.FlatSplitPaneUI
|
|||||||
|
|
||||||
#---- TabbedPane ----
|
#---- TabbedPane ----
|
||||||
|
|
||||||
|
TabbedPane.arrowType chevron
|
||||||
TabbedPane.background #ccffcc javax.swing.plaf.ColorUIResource [UI]
|
TabbedPane.background #ccffcc javax.swing.plaf.ColorUIResource [UI]
|
||||||
TabbedPane.closeArc 999
|
TabbedPane.closeArc 999
|
||||||
TabbedPane.closeCrossFilledSize 6.5
|
TabbedPane.closeCrossFilledSize 6.5
|
||||||
|
|||||||
@@ -638,6 +638,7 @@ SplitPaneDivider.oneTouchHoverArrowColor
|
|||||||
SplitPaneDivider.style
|
SplitPaneDivider.style
|
||||||
SplitPaneUI
|
SplitPaneUI
|
||||||
TabbedPane.ancestorInputMap
|
TabbedPane.ancestorInputMap
|
||||||
|
TabbedPane.arrowType
|
||||||
TabbedPane.background
|
TabbedPane.background
|
||||||
TabbedPane.closeArc
|
TabbedPane.closeArc
|
||||||
TabbedPane.closeCrossFilledSize
|
TabbedPane.closeCrossFilledSize
|
||||||
|
|||||||
Reference in New Issue
Block a user