mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -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 -->
|
||||
*
|
||||
* @uiDefault Component.arrowType String triangle (default) or chevron
|
||||
* @uiDefault TabbedPane.arrowType String chevron (default) or triangle
|
||||
* @uiDefault TabbedPane.disabledForeground Color
|
||||
* @uiDefault TabbedPane.selectedBackground Color optional
|
||||
* @uiDefault TabbedPane.selectedForeground Color
|
||||
@@ -1380,7 +1380,7 @@ public class FlatTabbedPaneUI
|
||||
|
||||
public FlatMoreTabsButton() {
|
||||
// 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.disabledForeground" ), null,
|
||||
UIManager.getColor( "TabbedPane.hoverColor" ) );
|
||||
@@ -1527,7 +1527,7 @@ public class FlatTabbedPaneUI
|
||||
|
||||
protected FlatScrollableTabButton( int direction ) {
|
||||
// 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.disabledForeground" ), null,
|
||||
UIManager.getColor( "TabbedPane.hoverColor" ) );
|
||||
|
||||
@@ -211,6 +211,7 @@ Component.innerFocusWidth={float}0.5
|
||||
Component.innerOutlineWidth={float}1
|
||||
Component.arc=5
|
||||
Component.minimumWidth=64
|
||||
# allowed values: chevron or triangle
|
||||
Component.arrowType=chevron
|
||||
Component.hideMnemonics=true
|
||||
|
||||
@@ -559,6 +560,8 @@ TabbedPane.contentBorderInsets=null
|
||||
TabbedPane.hiddenTabsNavigation=moreTabsButton
|
||||
TabbedPane.tabAreaAlignment=leading
|
||||
TabbedPane.tabAlignment=center
|
||||
# allowed values: chevron or triangle
|
||||
TabbedPane.arrowType=chevron
|
||||
|
||||
TabbedPane.closeIcon=com.formdev.flatlaf.icons.FlatTabbedPaneCloseIcon
|
||||
TabbedPane.closeSize=16,16
|
||||
|
||||
@@ -909,6 +909,7 @@ SplitPaneUI com.formdev.flatlaf.ui.FlatSplitPaneUI
|
||||
|
||||
#---- TabbedPane ----
|
||||
|
||||
TabbedPane.arrowType chevron
|
||||
TabbedPane.background #3c3f41 javax.swing.plaf.ColorUIResource [UI]
|
||||
TabbedPane.closeArc 4
|
||||
TabbedPane.closeCrossFilledSize 7.5
|
||||
|
||||
@@ -914,6 +914,7 @@ SplitPaneUI com.formdev.flatlaf.ui.FlatSplitPaneUI
|
||||
|
||||
#---- TabbedPane ----
|
||||
|
||||
TabbedPane.arrowType chevron
|
||||
TabbedPane.background #f2f2f2 javax.swing.plaf.ColorUIResource [UI]
|
||||
TabbedPane.closeArc 4
|
||||
TabbedPane.closeCrossFilledSize 7.5
|
||||
|
||||
@@ -902,6 +902,7 @@ SplitPaneUI com.formdev.flatlaf.ui.FlatSplitPaneUI
|
||||
|
||||
#---- TabbedPane ----
|
||||
|
||||
TabbedPane.arrowType chevron
|
||||
TabbedPane.background #ccffcc javax.swing.plaf.ColorUIResource [UI]
|
||||
TabbedPane.closeArc 999
|
||||
TabbedPane.closeCrossFilledSize 6.5
|
||||
|
||||
@@ -638,6 +638,7 @@ SplitPaneDivider.oneTouchHoverArrowColor
|
||||
SplitPaneDivider.style
|
||||
SplitPaneUI
|
||||
TabbedPane.ancestorInputMap
|
||||
TabbedPane.arrowType
|
||||
TabbedPane.background
|
||||
TabbedPane.closeArc
|
||||
TabbedPane.closeCrossFilledSize
|
||||
|
||||
Reference in New Issue
Block a user