[Patch][gui] MetalTheme
Michael Koch
konqueror@gmx.de
Fri Dec 24 09:54:00 GMT 2004
Hi list,
I just commited the attached patch to fix two methods in
javax.swing.plaf.metal.MetalTheme. Thanks to Thomas Zander for pointing
me to it.
Michael
2004-12-23 Michael Koch <konqueror@gmx.de>
* javax/swing/plaf/metal/MetalTheme.java
(getControlTextColor): Return getControlInfo().
(getHighlightedTextColor): Return getControlTextColor().
-------------- next part --------------
Index: javax/swing/plaf/metal/MetalTheme.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/metal/MetalTheme.java,v
retrieving revision 1.1
diff -u -r1.1 MetalTheme.java
--- javax/swing/plaf/metal/MetalTheme.java 22 Dec 2004 16:54:13 -0000 1.1
+++ javax/swing/plaf/metal/MetalTheme.java 23 Dec 2004 10:48:53 -0000
@@ -102,7 +102,7 @@
public ColorUIResource getControlTextColor()
{
- return getBlack();
+ return getControlInfo();
}
public ColorUIResource getDesktopColor()
@@ -117,7 +117,7 @@
public ColorUIResource getHighlightedTextColor()
{
- return getBlack();
+ return getControlTextColor();
}
public ColorUIResource getInactiveControlTextColor()
More information about the Java-patches
mailing list