1 |
/* MetalLookAndFeel.java |
/* MetalLookAndFeel.java |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
92 |
if (LAF_defaults == null) |
if (LAF_defaults == null) |
93 |
LAF_defaults = super.getDefaults(); |
LAF_defaults = super.getDefaults(); |
94 |
|
|
95 |
|
// add custom theme entries to the table |
96 |
|
theme.addCustomEntriesToTable(LAF_defaults); |
97 |
|
|
98 |
// Returns the default values for this look and feel. |
// Returns the default values for this look and feel. |
99 |
return LAF_defaults; |
return LAF_defaults; |
100 |
} |
} |
452 |
* </tr><tr> |
* </tr><tr> |
453 |
* <td>ScrollBar.background</td><td>0xcccccc</td> |
* <td>ScrollBar.background</td><td>0xcccccc</td> |
454 |
* </tr><tr> |
* </tr><tr> |
455 |
|
* <td>PopupMenu.border</td> |
456 |
|
* <td><code>new javax.swing.plaf.metal.MetalBorders.PopupMenuBorder()</td> |
457 |
|
* </tr><tr> |
458 |
* </table> |
* </table> |
459 |
* |
* |
460 |
* @param defaults the UIDefaults instance to which the values are added |
* @param defaults the UIDefaults instance to which the values are added |
465 |
Object[] myDefaults = new Object[] { |
Object[] myDefaults = new Object[] { |
466 |
"Button.background", new ColorUIResource(getControl()), |
"Button.background", new ColorUIResource(getControl()), |
467 |
"Button.border", MetalBorders.getButtonBorder(), |
"Button.border", MetalBorders.getButtonBorder(), |
468 |
|
"Button.darkShadow", new ColorUIResource(getControlDarkShadow()), |
469 |
|
"Button.disabledText", new ColorUIResource(getControlDisabled()), |
470 |
|
"Button.focus", new ColorUIResource(getFocusColor()), |
471 |
"Button.font", getControlTextFont(), |
"Button.font", getControlTextFont(), |
472 |
|
"Button.foreground", new ColorUIResource(getSystemTextColor()), |
473 |
|
"Button.highlight", new ColorUIResource(getControlHighlight()), |
474 |
|
"Button.light", new ColorUIResource(getControlHighlight()), |
475 |
"Button.margin", new Insets(2, 14, 2, 14), |
"Button.margin", new Insets(2, 14, 2, 14), |
476 |
|
"Button.select", new ColorUIResource(getPrimaryControlShadow()), |
477 |
|
"Button.shadow", new ColorUIResource(getPrimaryControlShadow()), |
478 |
"CheckBox.background", new ColorUIResource(getControl()), |
"CheckBox.background", new ColorUIResource(getControl()), |
479 |
"CheckBoxMenuItem.background", new ColorUIResource(getControl()), |
"CheckBoxMenuItem.background", new ColorUIResource(getControl()), |
480 |
"ToolBar.background", new ColorUIResource(getControl()), |
"ToolBar.background", new ColorUIResource(getControl()), |
482 |
"Slider.background", new ColorUIResource(getControl()), |
"Slider.background", new ColorUIResource(getControl()), |
483 |
"OptionPane.background", new ColorUIResource(getControl()), |
"OptionPane.background", new ColorUIResource(getControl()), |
484 |
"ProgressBar.background", new ColorUIResource(getControl()), |
"ProgressBar.background", new ColorUIResource(getControl()), |
485 |
|
"ScrollPane.border", new MetalBorders.ScrollPaneBorder(), |
486 |
"TabbedPane.background", new ColorUIResource(getControl()), |
"TabbedPane.background", new ColorUIResource(getControl()), |
487 |
"Label.background", new ColorUIResource(getControl()), |
"Label.background", new ColorUIResource(getControl()), |
488 |
"Label.font", getControlTextFont(), |
"Label.font", getControlTextFont(), |
489 |
|
"Label.disabledForeground", new ColorUIResource(getControlDisabled()), |
490 |
|
"Label.foreground", new ColorUIResource(getSystemTextColor()), |
491 |
"Menu.background", new ColorUIResource(getControl()), |
"Menu.background", new ColorUIResource(getControl()), |
492 |
|
"Menu.font", getControlTextFont(), |
493 |
"MenuBar.background", new ColorUIResource(getControl()), |
"MenuBar.background", new ColorUIResource(getControl()), |
494 |
|
"MenuBar.font", getControlTextFont(), |
495 |
"MenuItem.background", new ColorUIResource(getControl()), |
"MenuItem.background", new ColorUIResource(getControl()), |
496 |
"ScrollBar.background", new ColorUIResource(getControl()) |
"MenuItem.font", getControlTextFont(), |
497 |
|
"ScrollBar.background", new ColorUIResource(getControl()), |
498 |
|
"ScrollBar.shadow", new ColorUIResource(getControlShadow()), |
499 |
|
"ScrollBar.thumb", new ColorUIResource(getPrimaryControlShadow()), |
500 |
|
"ScrollBar.thumbDarkShadow", |
501 |
|
new ColorUIResource(getPrimaryControlDarkShadow()), |
502 |
|
"ScrollBar.thumbHighlight", |
503 |
|
new ColorUIResource(getPrimaryControl()), |
504 |
|
"PopupMenu.border", new MetalBorders.PopupMenuBorder() |
505 |
}; |
}; |
506 |
defaults.putDefaults(myDefaults); |
defaults.putDefaults(myDefaults); |
507 |
} |
} |