mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
Button and ToggleButton: added missing foreground colors for hover, pressed, focused and selected states (issue #535)
This commit is contained in:
@@ -5,6 +5,8 @@ FlatLaf Change Log
|
|||||||
|
|
||||||
#### New features and improvements
|
#### New features and improvements
|
||||||
|
|
||||||
|
- Button and ToggleButton: Added missing foreground colors for hover, pressed,
|
||||||
|
focused and selected states. (issue #535)
|
||||||
- Table: Optionally paint alternating rows below table if table is smaller than
|
- Table: Optionally paint alternating rows below table if table is smaller than
|
||||||
scroll pane. Set UI value `Table.paintOutsideAlternateRows` to `true`.
|
scroll pane. Set UI value `Table.paintOutsideAlternateRows` to `true`.
|
||||||
Requires that `Table.alternateRowColor` is set to a color. (issue #504)
|
Requires that `Table.alternateRowColor` is set to a color. (issue #504)
|
||||||
|
|||||||
@@ -78,20 +78,27 @@ import com.formdev.flatlaf.util.UIScale;
|
|||||||
* @uiDefault Button.startBackground Color optional; if set, a gradient paint is used and Button.background is ignored
|
* @uiDefault Button.startBackground Color optional; if set, a gradient paint is used and Button.background is ignored
|
||||||
* @uiDefault Button.endBackground Color optional; if set, a gradient paint is used
|
* @uiDefault Button.endBackground Color optional; if set, a gradient paint is used
|
||||||
* @uiDefault Button.focusedBackground Color optional
|
* @uiDefault Button.focusedBackground Color optional
|
||||||
|
* @uiDefault Button.focusedForeground Color optional
|
||||||
* @uiDefault Button.hoverBackground Color optional
|
* @uiDefault Button.hoverBackground Color optional
|
||||||
|
* @uiDefault Button.hoverForeground Color optional
|
||||||
* @uiDefault Button.pressedBackground Color optional
|
* @uiDefault Button.pressedBackground Color optional
|
||||||
|
* @uiDefault Button.pressedForeground Color optional
|
||||||
* @uiDefault Button.selectedBackground Color
|
* @uiDefault Button.selectedBackground Color
|
||||||
* @uiDefault Button.selectedForeground Color
|
* @uiDefault Button.selectedForeground Color
|
||||||
* @uiDefault Button.disabledBackground Color optional
|
* @uiDefault Button.disabledBackground Color optional
|
||||||
* @uiDefault Button.disabledText Color
|
* @uiDefault Button.disabledText Color
|
||||||
* @uiDefault Button.disabledSelectedBackground Color
|
* @uiDefault Button.disabledSelectedBackground Color
|
||||||
|
* @uiDefault Button.disabledSelectedForeground Color optional
|
||||||
* @uiDefault Button.default.background Color
|
* @uiDefault Button.default.background Color
|
||||||
* @uiDefault Button.default.startBackground Color optional; if set, a gradient paint is used and Button.default.background is ignored
|
* @uiDefault Button.default.startBackground Color optional; if set, a gradient paint is used and Button.default.background is ignored
|
||||||
* @uiDefault Button.default.endBackground Color optional; if set, a gradient paint is used
|
* @uiDefault Button.default.endBackground Color optional; if set, a gradient paint is used
|
||||||
* @uiDefault Button.default.foreground Color
|
* @uiDefault Button.default.foreground Color
|
||||||
* @uiDefault Button.default.focusedBackground Color optional
|
* @uiDefault Button.default.focusedBackground Color optional
|
||||||
|
* @uiDefault Button.default.focusedForeground Color optional
|
||||||
* @uiDefault Button.default.hoverBackground Color optional
|
* @uiDefault Button.default.hoverBackground Color optional
|
||||||
|
* @uiDefault Button.default.hoverForeground Color optional
|
||||||
* @uiDefault Button.default.pressedBackground Color optional
|
* @uiDefault Button.default.pressedBackground Color optional
|
||||||
|
* @uiDefault Button.default.pressedForeground Color optional
|
||||||
* @uiDefault Button.default.boldText boolean
|
* @uiDefault Button.default.boldText boolean
|
||||||
* @uiDefault Button.paintShadow boolean default is false
|
* @uiDefault Button.paintShadow boolean default is false
|
||||||
* @uiDefault Button.shadowWidth int default is 2
|
* @uiDefault Button.shadowWidth int default is 2
|
||||||
@@ -99,8 +106,13 @@ import com.formdev.flatlaf.util.UIScale;
|
|||||||
* @uiDefault Button.default.shadowColor Color optional
|
* @uiDefault Button.default.shadowColor Color optional
|
||||||
* @uiDefault Button.toolbar.spacingInsets Insets
|
* @uiDefault Button.toolbar.spacingInsets Insets
|
||||||
* @uiDefault Button.toolbar.hoverBackground Color
|
* @uiDefault Button.toolbar.hoverBackground Color
|
||||||
|
* @uiDefault Button.toolbar.hoverForeground Color optional
|
||||||
* @uiDefault Button.toolbar.pressedBackground Color
|
* @uiDefault Button.toolbar.pressedBackground Color
|
||||||
|
* @uiDefault Button.toolbar.pressedForeground Color optional
|
||||||
* @uiDefault Button.toolbar.selectedBackground Color
|
* @uiDefault Button.toolbar.selectedBackground Color
|
||||||
|
* @uiDefault Button.toolbar.selectedForeground Color optional
|
||||||
|
* @uiDefault Button.toolbar.disabledSelectedBackground Color optional
|
||||||
|
* @uiDefault Button.toolbar.disabledSelectedForeground Color optional
|
||||||
*
|
*
|
||||||
* @author Karl Tauber
|
* @author Karl Tauber
|
||||||
*/
|
*/
|
||||||
@@ -117,20 +129,27 @@ public class FlatButtonUI
|
|||||||
protected Color startBackground;
|
protected Color startBackground;
|
||||||
protected Color endBackground;
|
protected Color endBackground;
|
||||||
@Styleable protected Color focusedBackground;
|
@Styleable protected Color focusedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable protected Color focusedForeground;
|
||||||
@Styleable protected Color hoverBackground;
|
@Styleable protected Color hoverBackground;
|
||||||
|
/** @since 2.3 */ @Styleable protected Color hoverForeground;
|
||||||
@Styleable protected Color pressedBackground;
|
@Styleable protected Color pressedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable protected Color pressedForeground;
|
||||||
@Styleable protected Color selectedBackground;
|
@Styleable protected Color selectedBackground;
|
||||||
@Styleable protected Color selectedForeground;
|
@Styleable protected Color selectedForeground;
|
||||||
@Styleable protected Color disabledBackground;
|
@Styleable protected Color disabledBackground;
|
||||||
@Styleable protected Color disabledText;
|
@Styleable protected Color disabledText;
|
||||||
@Styleable protected Color disabledSelectedBackground;
|
@Styleable protected Color disabledSelectedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable protected Color disabledSelectedForeground;
|
||||||
|
|
||||||
@Styleable(dot=true) protected Color defaultBackground;
|
@Styleable(dot=true) protected Color defaultBackground;
|
||||||
protected Color defaultEndBackground;
|
protected Color defaultEndBackground;
|
||||||
@Styleable(dot=true) protected Color defaultForeground;
|
@Styleable(dot=true) protected Color defaultForeground;
|
||||||
@Styleable(dot=true) protected Color defaultFocusedBackground;
|
@Styleable(dot=true) protected Color defaultFocusedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color defaultFocusedForeground;
|
||||||
@Styleable(dot=true) protected Color defaultHoverBackground;
|
@Styleable(dot=true) protected Color defaultHoverBackground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color defaultHoverForeground;
|
||||||
@Styleable(dot=true) protected Color defaultPressedBackground;
|
@Styleable(dot=true) protected Color defaultPressedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color defaultPressedForeground;
|
||||||
@Styleable(dot=true) protected boolean defaultBoldText;
|
@Styleable(dot=true) protected boolean defaultBoldText;
|
||||||
|
|
||||||
@Styleable protected boolean paintShadow;
|
@Styleable protected boolean paintShadow;
|
||||||
@@ -139,8 +158,13 @@ public class FlatButtonUI
|
|||||||
@Styleable(dot=true) protected Color defaultShadowColor;
|
@Styleable(dot=true) protected Color defaultShadowColor;
|
||||||
|
|
||||||
@Styleable(dot=true) protected Color toolbarHoverBackground;
|
@Styleable(dot=true) protected Color toolbarHoverBackground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color toolbarHoverForeground;
|
||||||
@Styleable(dot=true) protected Color toolbarPressedBackground;
|
@Styleable(dot=true) protected Color toolbarPressedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color toolbarPressedForeground;
|
||||||
@Styleable(dot=true) protected Color toolbarSelectedBackground;
|
@Styleable(dot=true) protected Color toolbarSelectedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color toolbarSelectedForeground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color toolbarDisabledSelectedBackground;
|
||||||
|
/** @since 2.3 */ @Styleable(dot=true) protected Color toolbarDisabledSelectedForeground;
|
||||||
|
|
||||||
// only used via styling (not in UI defaults, but has likewise client properties)
|
// only used via styling (not in UI defaults, but has likewise client properties)
|
||||||
/** @since 2 */ @Styleable protected String buttonType;
|
/** @since 2 */ @Styleable protected String buttonType;
|
||||||
@@ -190,20 +214,27 @@ public class FlatButtonUI
|
|||||||
startBackground = UIManager.getColor( prefix + "startBackground" );
|
startBackground = UIManager.getColor( prefix + "startBackground" );
|
||||||
endBackground = UIManager.getColor( prefix + "endBackground" );
|
endBackground = UIManager.getColor( prefix + "endBackground" );
|
||||||
focusedBackground = UIManager.getColor( prefix + "focusedBackground" );
|
focusedBackground = UIManager.getColor( prefix + "focusedBackground" );
|
||||||
|
focusedForeground = UIManager.getColor( prefix + "focusedForeground" );
|
||||||
hoverBackground = UIManager.getColor( prefix + "hoverBackground" );
|
hoverBackground = UIManager.getColor( prefix + "hoverBackground" );
|
||||||
|
hoverForeground = UIManager.getColor( prefix + "hoverForeground" );
|
||||||
pressedBackground = UIManager.getColor( prefix + "pressedBackground" );
|
pressedBackground = UIManager.getColor( prefix + "pressedBackground" );
|
||||||
|
pressedForeground = UIManager.getColor( prefix + "pressedForeground" );
|
||||||
selectedBackground = UIManager.getColor( prefix + "selectedBackground" );
|
selectedBackground = UIManager.getColor( prefix + "selectedBackground" );
|
||||||
selectedForeground = UIManager.getColor( prefix + "selectedForeground" );
|
selectedForeground = UIManager.getColor( prefix + "selectedForeground" );
|
||||||
disabledBackground = UIManager.getColor( prefix + "disabledBackground" );
|
disabledBackground = UIManager.getColor( prefix + "disabledBackground" );
|
||||||
disabledText = UIManager.getColor( prefix + "disabledText" );
|
disabledText = UIManager.getColor( prefix + "disabledText" );
|
||||||
disabledSelectedBackground = UIManager.getColor( prefix + "disabledSelectedBackground" );
|
disabledSelectedBackground = UIManager.getColor( prefix + "disabledSelectedBackground" );
|
||||||
|
disabledSelectedForeground = UIManager.getColor( prefix + "disabledSelectedForeground" );
|
||||||
|
|
||||||
defaultBackground = FlatUIUtils.getUIColor( "Button.default.startBackground", "Button.default.background" );
|
defaultBackground = FlatUIUtils.getUIColor( "Button.default.startBackground", "Button.default.background" );
|
||||||
defaultEndBackground = UIManager.getColor( "Button.default.endBackground" );
|
defaultEndBackground = UIManager.getColor( "Button.default.endBackground" );
|
||||||
defaultForeground = UIManager.getColor( "Button.default.foreground" );
|
defaultForeground = UIManager.getColor( "Button.default.foreground" );
|
||||||
defaultFocusedBackground = UIManager.getColor( "Button.default.focusedBackground" );
|
defaultFocusedBackground = UIManager.getColor( "Button.default.focusedBackground" );
|
||||||
|
defaultFocusedForeground = UIManager.getColor( "Button.default.focusedForeground" );
|
||||||
defaultHoverBackground = UIManager.getColor( "Button.default.hoverBackground" );
|
defaultHoverBackground = UIManager.getColor( "Button.default.hoverBackground" );
|
||||||
|
defaultHoverForeground = UIManager.getColor( "Button.default.hoverForeground" );
|
||||||
defaultPressedBackground = UIManager.getColor( "Button.default.pressedBackground" );
|
defaultPressedBackground = UIManager.getColor( "Button.default.pressedBackground" );
|
||||||
|
defaultPressedForeground = UIManager.getColor( "Button.default.pressedForeground" );
|
||||||
defaultBoldText = UIManager.getBoolean( "Button.default.boldText" );
|
defaultBoldText = UIManager.getBoolean( "Button.default.boldText" );
|
||||||
|
|
||||||
paintShadow = UIManager.getBoolean( "Button.paintShadow" );
|
paintShadow = UIManager.getBoolean( "Button.paintShadow" );
|
||||||
@@ -212,8 +243,13 @@ public class FlatButtonUI
|
|||||||
defaultShadowColor = UIManager.getColor( "Button.default.shadowColor" );
|
defaultShadowColor = UIManager.getColor( "Button.default.shadowColor" );
|
||||||
|
|
||||||
toolbarHoverBackground = UIManager.getColor( prefix + "toolbar.hoverBackground" );
|
toolbarHoverBackground = UIManager.getColor( prefix + "toolbar.hoverBackground" );
|
||||||
|
toolbarHoverForeground = UIManager.getColor( prefix + "toolbar.hoverForeground" );
|
||||||
toolbarPressedBackground = UIManager.getColor( prefix + "toolbar.pressedBackground" );
|
toolbarPressedBackground = UIManager.getColor( prefix + "toolbar.pressedBackground" );
|
||||||
|
toolbarPressedForeground = UIManager.getColor( prefix + "toolbar.pressedForeground" );
|
||||||
toolbarSelectedBackground = UIManager.getColor( prefix + "toolbar.selectedBackground" );
|
toolbarSelectedBackground = UIManager.getColor( prefix + "toolbar.selectedBackground" );
|
||||||
|
toolbarSelectedForeground = UIManager.getColor( prefix + "toolbar.selectedForeground" );
|
||||||
|
toolbarDisabledSelectedBackground = UIManager.getColor( prefix + "toolbar.disabledSelectedBackground" );
|
||||||
|
toolbarDisabledSelectedForeground = UIManager.getColor( prefix + "toolbar.disabledSelectedForeground" );
|
||||||
|
|
||||||
helpButtonIcon = UIManager.getIcon( "HelpButton.icon" );
|
helpButtonIcon = UIManager.getIcon( "HelpButton.icon" );
|
||||||
defaultMargin = UIManager.getInsets( prefix + "margin" );
|
defaultMargin = UIManager.getInsets( prefix + "margin" );
|
||||||
@@ -532,6 +568,8 @@ public class FlatButtonUI
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void paintText( Graphics g, AbstractButton b, Rectangle textRect, String text, Color foreground ) {
|
public static void paintText( Graphics g, AbstractButton b, Rectangle textRect, String text, Color foreground ) {
|
||||||
|
if(foreground == null)
|
||||||
|
foreground=Color.red;
|
||||||
FontMetrics fm = b.getFontMetrics( b.getFont() );
|
FontMetrics fm = b.getFontMetrics( b.getFont() );
|
||||||
int mnemonicIndex = FlatLaf.isShowMnemonics() ? b.getDisplayedMnemonicIndex() : -1;
|
int mnemonicIndex = FlatLaf.isShowMnemonics() ? b.getDisplayedMnemonicIndex() : -1;
|
||||||
|
|
||||||
@@ -545,11 +583,14 @@ public class FlatButtonUI
|
|||||||
|
|
||||||
// selected state
|
// selected state
|
||||||
if( ((AbstractButton)c).isSelected() ) {
|
if( ((AbstractButton)c).isSelected() ) {
|
||||||
// in toolbar use same background colors for disabled and enabled because
|
// in toolbar, if toolbarDisabledSelectedBackground is null,
|
||||||
|
// use same background colors for disabled and enabled because
|
||||||
// we assume that toolbar icon is shown disabled
|
// we assume that toolbar icon is shown disabled
|
||||||
return buttonStateColor( c,
|
return buttonStateColor( c,
|
||||||
toolBarButton ? toolbarSelectedBackground : selectedBackground,
|
toolBarButton ? toolbarSelectedBackground : selectedBackground,
|
||||||
toolBarButton ? toolbarSelectedBackground : disabledSelectedBackground,
|
toolBarButton
|
||||||
|
? (toolbarDisabledSelectedBackground != null ? toolbarDisabledSelectedBackground : toolbarSelectedBackground)
|
||||||
|
: disabledSelectedBackground,
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
toolBarButton ? toolbarPressedBackground : pressedBackground );
|
toolBarButton ? toolbarPressedBackground : pressedBackground );
|
||||||
@@ -614,18 +655,48 @@ public class FlatButtonUI
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected Color getForeground( JComponent c ) {
|
protected Color getForeground( JComponent c ) {
|
||||||
if( !c.isEnabled() )
|
boolean toolBarButton = isToolBarButton( c ) || isBorderlessButton( c );
|
||||||
return disabledText;
|
|
||||||
|
|
||||||
if( ((AbstractButton)c).isSelected() && !(isToolBarButton( c ) || isBorderlessButton( c )) )
|
// selected state
|
||||||
return selectedForeground;
|
if( ((AbstractButton)c).isSelected() ) {
|
||||||
|
return buttonStateColor( c,
|
||||||
|
toolBarButton
|
||||||
|
? (toolbarSelectedForeground != null ? toolbarSelectedForeground : c.getForeground())
|
||||||
|
: selectedForeground,
|
||||||
|
toolBarButton
|
||||||
|
? (toolbarDisabledSelectedForeground != null ? toolbarDisabledSelectedForeground : disabledText)
|
||||||
|
: (disabledSelectedForeground != null ? disabledSelectedForeground : disabledText),
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
toolBarButton ? toolbarPressedForeground : pressedForeground );
|
||||||
|
}
|
||||||
|
|
||||||
|
// toolbar button
|
||||||
|
if( toolBarButton ) {
|
||||||
|
return buttonStateColor( c,
|
||||||
|
c.getForeground(),
|
||||||
|
disabledText,
|
||||||
|
null,
|
||||||
|
toolbarHoverForeground,
|
||||||
|
toolbarPressedForeground );
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean def = isDefaultButton( c );
|
||||||
|
return buttonStateColor( c,
|
||||||
|
getForegroundBase( c, def ),
|
||||||
|
disabledText,
|
||||||
|
isCustomForeground( c.getForeground() ) ? null : (def ? defaultFocusedForeground : focusedForeground),
|
||||||
|
def ? defaultHoverForeground : hoverForeground,
|
||||||
|
def ? defaultPressedForeground : pressedForeground );
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @since 2.3 */
|
||||||
|
protected Color getForegroundBase( JComponent c, boolean def ) {
|
||||||
// use component foreground if explicitly set
|
// use component foreground if explicitly set
|
||||||
Color fg = c.getForeground();
|
Color fg = c.getForeground();
|
||||||
if( isCustomForeground( fg ) )
|
if( isCustomForeground( fg ) )
|
||||||
return fg;
|
return fg;
|
||||||
|
|
||||||
boolean def = isDefaultButton( c );
|
|
||||||
return def ? defaultForeground : fg;
|
return def ? defaultForeground : fg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,15 +48,29 @@ import com.formdev.flatlaf.util.UIScale;
|
|||||||
* @uiDefault ToggleButton.iconTextGap int
|
* @uiDefault ToggleButton.iconTextGap int
|
||||||
* @uiDefault ToggleButton.startBackground Color optional; if set, a gradient paint is used and ToggleButton.background is ignored
|
* @uiDefault ToggleButton.startBackground Color optional; if set, a gradient paint is used and ToggleButton.background is ignored
|
||||||
* @uiDefault ToggleButton.endBackground Color optional; if set, a gradient paint is used
|
* @uiDefault ToggleButton.endBackground Color optional; if set, a gradient paint is used
|
||||||
* @uiDefault ToggleButton.pressedBackground Color
|
* @uiDefault ToggleButton.focusedBackground Color optional
|
||||||
|
* @uiDefault ToggleButton.focusedForeground Color optional
|
||||||
|
* @uiDefault ToggleButton.hoverBackground Color optional
|
||||||
|
* @uiDefault ToggleButton.hoverForeground Color optional
|
||||||
|
* @uiDefault ToggleButton.pressedBackground Color optional
|
||||||
|
* @uiDefault ToggleButton.pressedForeground Color optional
|
||||||
* @uiDefault ToggleButton.selectedBackground Color
|
* @uiDefault ToggleButton.selectedBackground Color
|
||||||
* @uiDefault ToggleButton.selectedForeground Color
|
* @uiDefault ToggleButton.selectedForeground Color
|
||||||
* @uiDefault ToggleButton.disabledBackground Color optional
|
* @uiDefault ToggleButton.disabledBackground Color optional
|
||||||
* @uiDefault ToggleButton.disabledText Color
|
* @uiDefault ToggleButton.disabledText Color
|
||||||
* @uiDefault ToggleButton.disabledSelectedBackground Color
|
* @uiDefault ToggleButton.disabledSelectedBackground Color
|
||||||
|
* @uiDefault ToggleButton.disabledSelectedForeground Color optional
|
||||||
|
* @uiDefault Button.paintShadow boolean default is false
|
||||||
|
* @uiDefault Button.shadowWidth int default is 2
|
||||||
|
* @uiDefault Button.shadowColor Color optional
|
||||||
* @uiDefault ToggleButton.toolbar.hoverBackground Color
|
* @uiDefault ToggleButton.toolbar.hoverBackground Color
|
||||||
|
* @uiDefault ToggleButton.toolbar.hoverForeground Color optional
|
||||||
* @uiDefault ToggleButton.toolbar.pressedBackground Color
|
* @uiDefault ToggleButton.toolbar.pressedBackground Color
|
||||||
|
* @uiDefault ToggleButton.toolbar.pressedForeground Color optional
|
||||||
* @uiDefault ToggleButton.toolbar.selectedBackground Color
|
* @uiDefault ToggleButton.toolbar.selectedBackground Color
|
||||||
|
* @uiDefault ToggleButton.toolbar.selectedForeground Color optional
|
||||||
|
* @uiDefault ToggleButton.toolbar.disabledSelectedBackground Color optional
|
||||||
|
* @uiDefault ToggleButton.toolbar.disabledSelectedForeground Color optional
|
||||||
*
|
*
|
||||||
* <!-- FlatToggleButtonUI -->
|
* <!-- FlatToggleButtonUI -->
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -96,19 +96,26 @@ public class TestFlatStyleableInfo
|
|||||||
"minimumWidth", int.class,
|
"minimumWidth", int.class,
|
||||||
|
|
||||||
"focusedBackground", Color.class,
|
"focusedBackground", Color.class,
|
||||||
|
"focusedForeground", Color.class,
|
||||||
"hoverBackground", Color.class,
|
"hoverBackground", Color.class,
|
||||||
|
"hoverForeground", Color.class,
|
||||||
"pressedBackground", Color.class,
|
"pressedBackground", Color.class,
|
||||||
|
"pressedForeground", Color.class,
|
||||||
"selectedBackground", Color.class,
|
"selectedBackground", Color.class,
|
||||||
"selectedForeground", Color.class,
|
"selectedForeground", Color.class,
|
||||||
"disabledBackground", Color.class,
|
"disabledBackground", Color.class,
|
||||||
"disabledText", Color.class,
|
"disabledText", Color.class,
|
||||||
"disabledSelectedBackground", Color.class,
|
"disabledSelectedBackground", Color.class,
|
||||||
|
"disabledSelectedForeground", Color.class,
|
||||||
|
|
||||||
"default.background", Color.class,
|
"default.background", Color.class,
|
||||||
"default.foreground", Color.class,
|
"default.foreground", Color.class,
|
||||||
"default.focusedBackground", Color.class,
|
"default.focusedBackground", Color.class,
|
||||||
|
"default.focusedForeground", Color.class,
|
||||||
"default.hoverBackground", Color.class,
|
"default.hoverBackground", Color.class,
|
||||||
|
"default.hoverForeground", Color.class,
|
||||||
"default.pressedBackground", Color.class,
|
"default.pressedBackground", Color.class,
|
||||||
|
"default.pressedForeground", Color.class,
|
||||||
"default.boldText", boolean.class,
|
"default.boldText", boolean.class,
|
||||||
|
|
||||||
"paintShadow", boolean.class,
|
"paintShadow", boolean.class,
|
||||||
@@ -118,8 +125,13 @@ public class TestFlatStyleableInfo
|
|||||||
|
|
||||||
"toolbar.spacingInsets", Insets.class,
|
"toolbar.spacingInsets", Insets.class,
|
||||||
"toolbar.hoverBackground", Color.class,
|
"toolbar.hoverBackground", Color.class,
|
||||||
|
"toolbar.hoverForeground", Color.class,
|
||||||
"toolbar.pressedBackground", Color.class,
|
"toolbar.pressedBackground", Color.class,
|
||||||
|
"toolbar.pressedForeground", Color.class,
|
||||||
"toolbar.selectedBackground", Color.class,
|
"toolbar.selectedBackground", Color.class,
|
||||||
|
"toolbar.selectedForeground", Color.class,
|
||||||
|
"toolbar.disabledSelectedBackground", Color.class,
|
||||||
|
"toolbar.disabledSelectedForeground", Color.class,
|
||||||
|
|
||||||
"buttonType", String.class,
|
"buttonType", String.class,
|
||||||
"squareSize", boolean.class,
|
"squareSize", boolean.class,
|
||||||
|
|||||||
@@ -221,19 +221,26 @@ public class TestFlatStyling
|
|||||||
ui.applyStyle( b, "minimumWidth: 100" );
|
ui.applyStyle( b, "minimumWidth: 100" );
|
||||||
|
|
||||||
ui.applyStyle( b, "focusedBackground: #fff" );
|
ui.applyStyle( b, "focusedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "focusedForeground: #fff" );
|
||||||
ui.applyStyle( b, "hoverBackground: #fff" );
|
ui.applyStyle( b, "hoverBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "hoverForeground: #fff" );
|
||||||
ui.applyStyle( b, "pressedBackground: #fff" );
|
ui.applyStyle( b, "pressedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "pressedForeground: #fff" );
|
||||||
ui.applyStyle( b, "selectedBackground: #fff" );
|
ui.applyStyle( b, "selectedBackground: #fff" );
|
||||||
ui.applyStyle( b, "selectedForeground: #fff" );
|
ui.applyStyle( b, "selectedForeground: #fff" );
|
||||||
ui.applyStyle( b, "disabledBackground: #fff" );
|
ui.applyStyle( b, "disabledBackground: #fff" );
|
||||||
ui.applyStyle( b, "disabledText: #fff" );
|
ui.applyStyle( b, "disabledText: #fff" );
|
||||||
ui.applyStyle( b, "disabledSelectedBackground: #fff" );
|
ui.applyStyle( b, "disabledSelectedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "disabledSelectedForeground: #fff" );
|
||||||
|
|
||||||
ui.applyStyle( b, "default.background: #fff" );
|
ui.applyStyle( b, "default.background: #fff" );
|
||||||
ui.applyStyle( b, "default.foreground: #fff" );
|
ui.applyStyle( b, "default.foreground: #fff" );
|
||||||
ui.applyStyle( b, "default.focusedBackground: #fff" );
|
ui.applyStyle( b, "default.focusedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "default.focusedForeground: #fff" );
|
||||||
ui.applyStyle( b, "default.hoverBackground: #fff" );
|
ui.applyStyle( b, "default.hoverBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "default.hoverForeground: #fff" );
|
||||||
ui.applyStyle( b, "default.pressedBackground: #fff" );
|
ui.applyStyle( b, "default.pressedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "default.pressedForeground: #fff" );
|
||||||
ui.applyStyle( b, "default.boldText: true" );
|
ui.applyStyle( b, "default.boldText: true" );
|
||||||
|
|
||||||
ui.applyStyle( b, "paintShadow: true" );
|
ui.applyStyle( b, "paintShadow: true" );
|
||||||
@@ -243,8 +250,13 @@ public class TestFlatStyling
|
|||||||
|
|
||||||
ui.applyStyle( b, "toolbar.spacingInsets: 1,2,3,4" );
|
ui.applyStyle( b, "toolbar.spacingInsets: 1,2,3,4" );
|
||||||
ui.applyStyle( b, "toolbar.hoverBackground: #fff" );
|
ui.applyStyle( b, "toolbar.hoverBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "toolbar.hoverForeground: #fff" );
|
||||||
ui.applyStyle( b, "toolbar.pressedBackground: #fff" );
|
ui.applyStyle( b, "toolbar.pressedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "toolbar.pressedForeground: #fff" );
|
||||||
ui.applyStyle( b, "toolbar.selectedBackground: #fff" );
|
ui.applyStyle( b, "toolbar.selectedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "toolbar.selectedForeground: #fff" );
|
||||||
|
ui.applyStyle( b, "toolbar.disabledSelectedBackground: #fff" );
|
||||||
|
ui.applyStyle( b, "toolbar.disabledSelectedForeground: #fff" );
|
||||||
|
|
||||||
ui.applyStyle( b, "buttonType: help" );
|
ui.applyStyle( b, "buttonType: help" );
|
||||||
ui.applyStyle( b, "squareSize: true" );
|
ui.applyStyle( b, "squareSize: true" );
|
||||||
|
|||||||
@@ -73,43 +73,57 @@ Button.default.endBorderColor #0000ff HSL 240 100 50 javax.swing.plaf.Colo
|
|||||||
Button.default.focusColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.focusColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.focusedBackground #00ffff HSL 180 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.focusedBackground #00ffff HSL 180 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.focusedBorderColor #537699 HSL 210 30 46 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.focusedBorderColor #537699 HSL 210 30 46 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.default.focusedForeground #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.foreground #880000 HSL 0 100 27 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.foreground #880000 HSL 0 100 27 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.hoverBackground #ffff00 HSL 60 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.hoverBackground #ffff00 HSL 60 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.hoverBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.hoverBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.default.hoverForeground #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.pressedBackground #ffc800 HSL 47 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.pressedBackground #ffc800 HSL 47 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.default.pressedForeground #0080ff HSL 210 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.startBackground #dddddd HSL 0 0 87 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.startBackground #dddddd HSL 0 0 87 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.default.startBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.default.startBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.defaultButtonFollowsFocus false
|
Button.defaultButtonFollowsFocus false
|
||||||
Button.disabledBackground #e0e0e0 HSL 0 0 88 javax.swing.plaf.ColorUIResource [UI]
|
Button.disabledBackground #e0e0e0 HSL 0 0 88 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.disabledBorderColor #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
Button.disabledBorderColor #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.disabledForeground #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
Button.disabledForeground #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.disabledSelectedBackground #112233 HSL 210 50 13 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.disabledSelectedForeground #ffcccc HSL 0 100 90 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.disabledText #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
Button.disabledText #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.endBackground #bbbbbb HSL 0 0 73 javax.swing.plaf.ColorUIResource [UI]
|
Button.endBackground #bbbbbb HSL 0 0 73 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.endBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.endBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.focusedBackground #00ffff HSL 180 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.focusedBackground #00ffff HSL 180 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.focusedBorderColor #466d94 HSL 210 36 43 javax.swing.plaf.ColorUIResource [UI]
|
Button.focusedBorderColor #466d94 HSL 210 36 43 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.focusedForeground #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.font [active] $defaultFont [UI]
|
Button.font [active] $defaultFont [UI]
|
||||||
Button.foreground #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.foreground #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.highlight #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
Button.highlight #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.hoverBackground #ffff00 HSL 60 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.hoverBackground #ffff00 HSL 60 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.hoverBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.hoverBorderColor #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.hoverForeground #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.iconTextGap 4
|
Button.iconTextGap 4
|
||||||
Button.innerFocusWidth 1
|
Button.innerFocusWidth 1
|
||||||
Button.light #e3e3e3 HSL 0 0 89 javax.swing.plaf.ColorUIResource [UI]
|
Button.light #e3e3e3 HSL 0 0 89 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.margin 2,14,2,14 javax.swing.plaf.InsetsUIResource [UI]
|
Button.margin 2,14,2,14 javax.swing.plaf.InsetsUIResource [UI]
|
||||||
Button.minimumWidth 72
|
Button.minimumWidth 72
|
||||||
Button.pressedBackground #ffc800 HSL 47 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.pressedBackground #ffc800 HSL 47 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.pressedForeground #0080ff HSL 210 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.rollover true
|
Button.rollover true
|
||||||
Button.selectedBackground #ffbbbb HSL 0 100 87 javax.swing.plaf.ColorUIResource [UI]
|
Button.selectedBackground #ffbbbb HSL 0 100 87 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.selectedForeground #332211 HSL 30 50 13 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.shadow #a0a0a0 HSL 0 0 63 javax.swing.plaf.ColorUIResource [UI]
|
Button.shadow #a0a0a0 HSL 0 0 63 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.startBackground #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
Button.startBackground #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.startBorderColor #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
Button.startBorderColor #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.textIconGap 4
|
Button.textIconGap 4
|
||||||
Button.textShiftOffset 0
|
Button.textShiftOffset 0
|
||||||
|
Button.toolbar.disabledSelectedBackground #cccccc HSL 0 0 80 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.toolbar.disabledSelectedForeground #886666 HSL 0 14 47 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.toolbar.hoverBackground #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
Button.toolbar.hoverBackground #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.toolbar.hoverForeground #000000 HSL 0 0 0 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.toolbar.margin 3,3,3,3 javax.swing.plaf.InsetsUIResource [UI]
|
Button.toolbar.margin 3,3,3,3 javax.swing.plaf.InsetsUIResource [UI]
|
||||||
Button.toolbar.pressedBackground #eeeeee HSL 0 0 93 javax.swing.plaf.ColorUIResource [UI]
|
Button.toolbar.pressedBackground #eeeeee HSL 0 0 93 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.toolbar.pressedForeground #666666 HSL 0 0 40 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.toolbar.selectedBackground #dddddd HSL 0 0 87 javax.swing.plaf.ColorUIResource [UI]
|
Button.toolbar.selectedBackground #dddddd HSL 0 0 87 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
Button.toolbar.selectedForeground #880000 HSL 0 100 27 javax.swing.plaf.ColorUIResource [UI]
|
||||||
Button.toolbar.spacingInsets 1,2,1,2 javax.swing.plaf.InsetsUIResource [UI]
|
Button.toolbar.spacingInsets 1,2,1,2 javax.swing.plaf.InsetsUIResource [UI]
|
||||||
ButtonUI com.formdev.flatlaf.ui.FlatButtonUI
|
ButtonUI com.formdev.flatlaf.ui.FlatButtonUI
|
||||||
|
|
||||||
@@ -1280,16 +1294,20 @@ ToggleButton.border [lazy] 1,1,1,1 false com.formdev.flatlaf.ui.F
|
|||||||
ToggleButton.darkShadow #696969 HSL 0 0 41 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.darkShadow #696969 HSL 0 0 41 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.disabledBackground #e0e0e0 HSL 0 0 88 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.disabledBackground #e0e0e0 HSL 0 0 88 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.disabledSelectedBackground #44dd44 HSL 120 69 57 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.disabledSelectedBackground #44dd44 HSL 120 69 57 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.disabledSelectedForeground #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.disabledText #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.disabledText #000088 HSL 240 100 27 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.focusedBackground #00ffff HSL 180 100 50 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.focusedBackground #00ffff HSL 180 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.focusedForeground #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.font [active] $defaultFont [UI]
|
ToggleButton.font [active] $defaultFont [UI]
|
||||||
ToggleButton.foreground #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.foreground #ff0000 HSL 0 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.highlight #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.highlight #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.hoverBackground #ffff00 HSL 60 100 50 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.hoverBackground #ffff00 HSL 60 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.hoverForeground #0000ff HSL 240 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.iconTextGap 4
|
ToggleButton.iconTextGap 4
|
||||||
ToggleButton.light #e3e3e3 HSL 0 0 89 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.light #e3e3e3 HSL 0 0 89 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.margin 2,14,2,14 javax.swing.plaf.InsetsUIResource [UI]
|
ToggleButton.margin 2,14,2,14 javax.swing.plaf.InsetsUIResource [UI]
|
||||||
ToggleButton.pressedBackground #ffc800 HSL 47 100 50 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.pressedBackground #ffc800 HSL 47 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.pressedForeground #0080ff HSL 210 100 50 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.rollover true
|
ToggleButton.rollover true
|
||||||
ToggleButton.selectedBackground #44ff44 HSL 120 100 63 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.selectedBackground #44ff44 HSL 120 100 63 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.selectedForeground #000000 HSL 0 0 0 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.selectedForeground #000000 HSL 0 0 0 javax.swing.plaf.ColorUIResource [UI]
|
||||||
@@ -1302,9 +1320,14 @@ ToggleButton.tab.underlineColor #ffff00 HSL 60 100 50 javax.swing.plaf.Col
|
|||||||
ToggleButton.tab.underlineHeight 2
|
ToggleButton.tab.underlineHeight 2
|
||||||
ToggleButton.textIconGap 4
|
ToggleButton.textIconGap 4
|
||||||
ToggleButton.textShiftOffset 0
|
ToggleButton.textShiftOffset 0
|
||||||
|
ToggleButton.toolbar.disabledSelectedBackground #cccccc HSL 0 0 80 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.toolbar.disabledSelectedForeground #886666 HSL 0 14 47 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.toolbar.hoverBackground #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.toolbar.hoverBackground #ffffff HSL 0 0 100 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.toolbar.hoverForeground #000000 HSL 0 0 0 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.toolbar.pressedBackground #eeeeee HSL 0 0 93 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.toolbar.pressedBackground #eeeeee HSL 0 0 93 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.toolbar.pressedForeground #666666 HSL 0 0 40 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButton.toolbar.selectedBackground #dddddd HSL 0 0 87 javax.swing.plaf.ColorUIResource [UI]
|
ToggleButton.toolbar.selectedBackground #dddddd HSL 0 0 87 javax.swing.plaf.ColorUIResource [UI]
|
||||||
|
ToggleButton.toolbar.selectedForeground #880000 HSL 0 100 27 javax.swing.plaf.ColorUIResource [UI]
|
||||||
ToggleButtonUI com.formdev.flatlaf.ui.FlatToggleButtonUI
|
ToggleButtonUI com.formdev.flatlaf.ui.FlatToggleButtonUI
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -78,9 +78,15 @@ controlDkShadow = #696969
|
|||||||
Button.startBackground = #fff
|
Button.startBackground = #fff
|
||||||
Button.endBackground = #bbb
|
Button.endBackground = #bbb
|
||||||
Button.focusedBackground = #0ff
|
Button.focusedBackground = #0ff
|
||||||
|
Button.focusedForeground = #00f
|
||||||
Button.hoverBackground = #ff0
|
Button.hoverBackground = #ff0
|
||||||
|
Button.hoverForeground = #00f
|
||||||
Button.pressedBackground = #FFC800
|
Button.pressedBackground = #FFC800
|
||||||
|
Button.pressedForeground = #0080ff
|
||||||
Button.selectedBackground = #fbb
|
Button.selectedBackground = #fbb
|
||||||
|
Button.selectedForeground = #321
|
||||||
|
Button.disabledSelectedBackground = #123
|
||||||
|
Button.disabledSelectedForeground = #fcc
|
||||||
|
|
||||||
Button.borderColor = #0f0
|
Button.borderColor = #0f0
|
||||||
Button.startBorderColor = #00f
|
Button.startBorderColor = #00f
|
||||||
@@ -95,8 +101,11 @@ Button.default.startBackground = #ddd
|
|||||||
Button.default.endBackground = #888
|
Button.default.endBackground = #888
|
||||||
Button.default.foreground = #800
|
Button.default.foreground = #800
|
||||||
Button.default.focusedBackground = #0ff
|
Button.default.focusedBackground = #0ff
|
||||||
|
Button.default.focusedForeground = #00f
|
||||||
Button.default.hoverBackground = #ff0
|
Button.default.hoverBackground = #ff0
|
||||||
|
Button.default.hoverForeground = #00f
|
||||||
Button.default.pressedBackground = #FFC800
|
Button.default.pressedBackground = #FFC800
|
||||||
|
Button.default.pressedForeground = #0080ff
|
||||||
Button.default.startBorderColor = #f00
|
Button.default.startBorderColor = #f00
|
||||||
Button.default.endBorderColor = #00f
|
Button.default.endBorderColor = #00f
|
||||||
Button.default.hoverBorderColor = #f00
|
Button.default.hoverBorderColor = #f00
|
||||||
@@ -104,8 +113,13 @@ Button.default.focusedBorderColor = #537699
|
|||||||
Button.default.focusColor = #f00
|
Button.default.focusColor = #f00
|
||||||
|
|
||||||
Button.toolbar.hoverBackground = #fff
|
Button.toolbar.hoverBackground = #fff
|
||||||
|
Button.toolbar.hoverForeground = #000
|
||||||
Button.toolbar.pressedBackground = #eee
|
Button.toolbar.pressedBackground = #eee
|
||||||
|
Button.toolbar.pressedForeground = #666
|
||||||
Button.toolbar.selectedBackground = #ddd
|
Button.toolbar.selectedBackground = #ddd
|
||||||
|
Button.toolbar.selectedForeground = #800
|
||||||
|
Button.toolbar.disabledSelectedBackground = #ccc
|
||||||
|
Button.toolbar.disabledSelectedForeground = #866
|
||||||
|
|
||||||
|
|
||||||
#---- CheckBox ----
|
#---- CheckBox ----
|
||||||
@@ -422,12 +436,23 @@ ToggleButton.background = #ddf
|
|||||||
ToggleButton.selectedBackground = #4f4
|
ToggleButton.selectedBackground = #4f4
|
||||||
ToggleButton.selectedForeground = #000
|
ToggleButton.selectedForeground = #000
|
||||||
ToggleButton.disabledSelectedBackground = #4d4
|
ToggleButton.disabledSelectedBackground = #4d4
|
||||||
|
ToggleButton.disabledSelectedForeground = #fff
|
||||||
|
|
||||||
ToggleButton.focusedBackground = #0ff
|
ToggleButton.focusedBackground = #0ff
|
||||||
|
ToggleButton.focusedForeground = #00f
|
||||||
ToggleButton.hoverBackground = #ff0
|
ToggleButton.hoverBackground = #ff0
|
||||||
|
ToggleButton.hoverForeground = #00f
|
||||||
ToggleButton.pressedBackground = #FFC800
|
ToggleButton.pressedBackground = #FFC800
|
||||||
|
ToggleButton.pressedForeground = #0080ff
|
||||||
|
|
||||||
|
ToggleButton.toolbar.hoverBackground = #fff
|
||||||
|
ToggleButton.toolbar.hoverForeground = #000
|
||||||
|
ToggleButton.toolbar.pressedBackground = #eee
|
||||||
|
ToggleButton.toolbar.pressedForeground = #666
|
||||||
ToggleButton.toolbar.selectedBackground = #ddd
|
ToggleButton.toolbar.selectedBackground = #ddd
|
||||||
|
ToggleButton.toolbar.selectedForeground = #800
|
||||||
|
ToggleButton.toolbar.disabledSelectedBackground = #ccc
|
||||||
|
ToggleButton.toolbar.disabledSelectedForeground = #866
|
||||||
|
|
||||||
|
|
||||||
#---- ToolBar ----
|
#---- ToolBar ----
|
||||||
|
|||||||
@@ -23,10 +23,13 @@ Button.default.endBorderColor
|
|||||||
Button.default.focusColor
|
Button.default.focusColor
|
||||||
Button.default.focusedBackground
|
Button.default.focusedBackground
|
||||||
Button.default.focusedBorderColor
|
Button.default.focusedBorderColor
|
||||||
|
Button.default.focusedForeground
|
||||||
Button.default.foreground
|
Button.default.foreground
|
||||||
Button.default.hoverBackground
|
Button.default.hoverBackground
|
||||||
Button.default.hoverBorderColor
|
Button.default.hoverBorderColor
|
||||||
|
Button.default.hoverForeground
|
||||||
Button.default.pressedBackground
|
Button.default.pressedBackground
|
||||||
|
Button.default.pressedForeground
|
||||||
Button.default.startBackground
|
Button.default.startBackground
|
||||||
Button.default.startBorderColor
|
Button.default.startBorderColor
|
||||||
Button.defaultButtonFollowsFocus
|
Button.defaultButtonFollowsFocus
|
||||||
@@ -34,23 +37,27 @@ Button.disabledBackground
|
|||||||
Button.disabledBorderColor
|
Button.disabledBorderColor
|
||||||
Button.disabledForeground
|
Button.disabledForeground
|
||||||
Button.disabledSelectedBackground
|
Button.disabledSelectedBackground
|
||||||
|
Button.disabledSelectedForeground
|
||||||
Button.disabledText
|
Button.disabledText
|
||||||
Button.endBackground
|
Button.endBackground
|
||||||
Button.endBorderColor
|
Button.endBorderColor
|
||||||
Button.focusInputMap
|
Button.focusInputMap
|
||||||
Button.focusedBackground
|
Button.focusedBackground
|
||||||
Button.focusedBorderColor
|
Button.focusedBorderColor
|
||||||
|
Button.focusedForeground
|
||||||
Button.font
|
Button.font
|
||||||
Button.foreground
|
Button.foreground
|
||||||
Button.highlight
|
Button.highlight
|
||||||
Button.hoverBackground
|
Button.hoverBackground
|
||||||
Button.hoverBorderColor
|
Button.hoverBorderColor
|
||||||
|
Button.hoverForeground
|
||||||
Button.iconTextGap
|
Button.iconTextGap
|
||||||
Button.innerFocusWidth
|
Button.innerFocusWidth
|
||||||
Button.light
|
Button.light
|
||||||
Button.margin
|
Button.margin
|
||||||
Button.minimumWidth
|
Button.minimumWidth
|
||||||
Button.pressedBackground
|
Button.pressedBackground
|
||||||
|
Button.pressedForeground
|
||||||
Button.rollover
|
Button.rollover
|
||||||
Button.selectedBackground
|
Button.selectedBackground
|
||||||
Button.selectedForeground
|
Button.selectedForeground
|
||||||
@@ -59,10 +66,15 @@ Button.startBackground
|
|||||||
Button.startBorderColor
|
Button.startBorderColor
|
||||||
Button.textIconGap
|
Button.textIconGap
|
||||||
Button.textShiftOffset
|
Button.textShiftOffset
|
||||||
|
Button.toolbar.disabledSelectedBackground
|
||||||
|
Button.toolbar.disabledSelectedForeground
|
||||||
Button.toolbar.hoverBackground
|
Button.toolbar.hoverBackground
|
||||||
|
Button.toolbar.hoverForeground
|
||||||
Button.toolbar.margin
|
Button.toolbar.margin
|
||||||
Button.toolbar.pressedBackground
|
Button.toolbar.pressedBackground
|
||||||
|
Button.toolbar.pressedForeground
|
||||||
Button.toolbar.selectedBackground
|
Button.toolbar.selectedBackground
|
||||||
|
Button.toolbar.selectedForeground
|
||||||
Button.toolbar.spacingInsets
|
Button.toolbar.spacingInsets
|
||||||
ButtonUI
|
ButtonUI
|
||||||
Caret.width
|
Caret.width
|
||||||
@@ -1001,17 +1013,21 @@ ToggleButton.border
|
|||||||
ToggleButton.darkShadow
|
ToggleButton.darkShadow
|
||||||
ToggleButton.disabledBackground
|
ToggleButton.disabledBackground
|
||||||
ToggleButton.disabledSelectedBackground
|
ToggleButton.disabledSelectedBackground
|
||||||
|
ToggleButton.disabledSelectedForeground
|
||||||
ToggleButton.disabledText
|
ToggleButton.disabledText
|
||||||
ToggleButton.focusInputMap
|
ToggleButton.focusInputMap
|
||||||
ToggleButton.focusedBackground
|
ToggleButton.focusedBackground
|
||||||
|
ToggleButton.focusedForeground
|
||||||
ToggleButton.font
|
ToggleButton.font
|
||||||
ToggleButton.foreground
|
ToggleButton.foreground
|
||||||
ToggleButton.highlight
|
ToggleButton.highlight
|
||||||
ToggleButton.hoverBackground
|
ToggleButton.hoverBackground
|
||||||
|
ToggleButton.hoverForeground
|
||||||
ToggleButton.iconTextGap
|
ToggleButton.iconTextGap
|
||||||
ToggleButton.light
|
ToggleButton.light
|
||||||
ToggleButton.margin
|
ToggleButton.margin
|
||||||
ToggleButton.pressedBackground
|
ToggleButton.pressedBackground
|
||||||
|
ToggleButton.pressedForeground
|
||||||
ToggleButton.rollover
|
ToggleButton.rollover
|
||||||
ToggleButton.selectedBackground
|
ToggleButton.selectedBackground
|
||||||
ToggleButton.selectedForeground
|
ToggleButton.selectedForeground
|
||||||
@@ -1024,9 +1040,14 @@ ToggleButton.tab.underlineColor
|
|||||||
ToggleButton.tab.underlineHeight
|
ToggleButton.tab.underlineHeight
|
||||||
ToggleButton.textIconGap
|
ToggleButton.textIconGap
|
||||||
ToggleButton.textShiftOffset
|
ToggleButton.textShiftOffset
|
||||||
|
ToggleButton.toolbar.disabledSelectedBackground
|
||||||
|
ToggleButton.toolbar.disabledSelectedForeground
|
||||||
ToggleButton.toolbar.hoverBackground
|
ToggleButton.toolbar.hoverBackground
|
||||||
|
ToggleButton.toolbar.hoverForeground
|
||||||
ToggleButton.toolbar.pressedBackground
|
ToggleButton.toolbar.pressedBackground
|
||||||
|
ToggleButton.toolbar.pressedForeground
|
||||||
ToggleButton.toolbar.selectedBackground
|
ToggleButton.toolbar.selectedBackground
|
||||||
|
ToggleButton.toolbar.selectedForeground
|
||||||
ToggleButtonUI
|
ToggleButtonUI
|
||||||
ToolBar.ancestorInputMap
|
ToolBar.ancestorInputMap
|
||||||
ToolBar.arrowKeysOnlyNavigation
|
ToolBar.arrowKeysOnlyNavigation
|
||||||
|
|||||||
Reference in New Issue
Block a user