Skip to content

Commit cf40622

Browse files
committed
slightly darker buttons for better contrast with panels.
1 parent 0901b0d commit cf40622

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/HTML5LookAndFeel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ protected void initSystemColorDefaults(UIDefaults table) {
392392
"textHighlight", "#B8CFE5", /* Text color when selected */
393393
"textHighlightText", "#000000", /* Text color when selected */
394394
"textInactiveText", "#808080", /* Text color when disabled */
395+
"control2", "#E0E0E0", // slightly darker than control
395396
"control", "#EEEEEE", // SECONDARY3 Default color for controls (buttons, sliders, etc)
396397
"controlText", "#333333", // Default color for text in controls
397398
"controlHighlight", "#C0C0C0", /*
@@ -548,6 +549,7 @@ protected void initComponentDefaults(UIDefaults table) {
548549
ColorUIResource scrollBarTrack = new ColorUIResource(224, 224, 224);
549550

550551
Color control = table.getColor("control");
552+
Color control2 = table.getColor("control2");
551553
Color controlDkShadow = table.getColor("controlDkShadow");
552554
Color controlHighlight = table.getColor("controlHighlight");
553555
Color controlLtHighlight = table.getColor("controlLtHighlight");
@@ -900,7 +902,7 @@ public Object createValue(UIDefaults table) {
900902
// *** Buttons
901903
// "Button.defaultButtonFollowsFocus", Boolean.TRUE,
902904
// "Button.font", dialogPlain12,
903-
"Button.background", control,
905+
"Button.background", control2,
904906
"Button.foreground", controlText,
905907
"Button.inactiveForeground", disabledTextColor,
906908
// "Button.shadow", controlShadow,

0 commit comments

Comments
 (0)