[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Some more default colors in javax.swing.plaf.metal.Met
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Some more default colors in javax.swing.plaf.metal.MetalLookAndFeel |
Date: |
Wed, 27 Apr 2005 12:22:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204 |
Hi,
I added some more default color settings in the Metal L&F.
2005-04-27 Roman Kennke <address@hidden>
* javax/swing/plaf/metal/MetalLookAndFeel
(initComponentDefaults): Added some default colors.
/Roman
Index: javax/swing/plaf/metal/MetalLookAndFeel.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,v
retrieving revision 1.19
diff -u -r1.19 MetalLookAndFeel.java
--- javax/swing/plaf/metal/MetalLookAndFeel.java 27 Apr 2005 08:31:34
-0000 1.19
+++ javax/swing/plaf/metal/MetalLookAndFeel.java 27 Apr 2005 10:19:15
-0000
@@ -465,8 +465,16 @@
Object[] myDefaults = new Object[] {
"Button.background", new ColorUIResource(getControl()),
"Button.border", MetalBorders.getButtonBorder(),
+ "Button.darkShadow", new ColorUIResource(getControlDarkShadow()),
+ "Button.disabledText", new ColorUIResource(getControlDisabled()),
+ "Button.focus", new ColorUIResource(getFocusColor()),
"Button.font", getControlTextFont(),
+ "Button.foreground", new ColorUIResource(getSystemTextColor()),
+ "Button.highlight", new ColorUIResource(getControlHighlight()),
+ "Button.light", new ColorUIResource(getControlHighlight()),
"Button.margin", new Insets(2, 14, 2, 14),
+ "Button.select", new ColorUIResource(getPrimaryControlShadow()),
+ "Button.shadow", new ColorUIResource(getPrimaryControlShadow()),
"CheckBox.background", new ColorUIResource(getControl()),
"CheckBoxMenuItem.background", new ColorUIResource(getControl()),
"ToolBar.background", new ColorUIResource(getControl()),
@@ -478,6 +486,8 @@
"TabbedPane.background", new ColorUIResource(getControl()),
"Label.background", new ColorUIResource(getControl()),
"Label.font", getControlTextFont(),
+ "Label.disabledForeground", new ColorUIResource(getControlDisabled()),
+ "Label.foreground", new ColorUIResource(getSystemTextColor()),
"Menu.background", new ColorUIResource(getControl()),
"Menu.font", getControlTextFont(),
"MenuBar.background", new ColorUIResource(getControl()),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Some more default colors in javax.swing.plaf.metal.MetalLookAndFeel,
Roman Kennke <=