mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 22:47: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
|
||||
|
||||
Reference in New Issue
Block a user