* Re: [cp-patches]: L&F fix
[not found] ` <1127407082.6513.19.camel@localhost.localdomain>
@ 2005-09-22 17:18 ` Lillian Angel
0 siblings, 0 replies; only message in thread
From: Lillian Angel @ 2005-09-22 17:18 UTC (permalink / raw)
To: Roman Kennke; +Cc: mauve-discuss
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
On Thu, 2005-09-22 at 18:38 +0200, Roman Kennke wrote:
> Hi Lillian,
>
> you have committed the following:
>
> - "Tree.textBackground", new ColorUIResource(new Color(255, 255,
> 255)),
> - "Tree.textForeground", new ColorUIResource(Color.black),
> + "Tree.textBackground", new ColorUIResource(new Color(192, 192,
> 192)),
> + "Tree.textForeground", new ColorUIResource(new Color(0, 0, 0)),
>
> IMO writing new ColorUIResource(Color.BLACK) is slightly more efficient
> than new ColorUIResource(new Color(0, 0, 0)).
>
> Also, have you seen that there is a testcase for
> BasicLookAndFeel.initComponentDefaults(). If these values are not
> already in this testcase, please add them.
No problem.
Attached is the patch. I do not have commit access.
Lillian
[-- Attachment #2: mauve.diff --]
[-- Type: text/x-patch, Size: 2278 bytes --]
Index: gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java,v
retrieving revision 1.3
diff -u -r1.3 initComponentDefaults.java
--- gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java 2 Sep 2005 08:49:36 -0000 1.3
+++ gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java 22 Sep 2005 17:14:36 -0000
@@ -449,7 +449,9 @@
harness.check(defaults.get("Tree.rowHeight"), new Integer(16));
harness.check(defaults.get("Tree.scrollsOnExpand"), Boolean.TRUE);
harness.check(defaults.get("Tree.selectionBorderColor"), new ColorUIResource(0, 0, 0));
-
+ harness.check(defaults.get("Tree.textForeground"), new ColorUIResource(Color.black));
+ harness.check(defaults.get("Tree.textBackground"), new ColorUIResource(new Color(192, 192,192));
+
harness.checkPoint("Viewport");
harness.check(defaults.get("Viewport.font"), new FontUIResource("Dialog", Font.PLAIN, 12));
}
Index: gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDefaults.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDefaults.java,v
retrieving revision 1.1
diff -u -r1.1 getDefaults.java
--- gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDefaults.java 9 Sep 2005 13:13:37 -0000 1.1
+++ gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDefaults.java 22 Sep 2005 17:14:36 -0000
@@ -877,7 +877,7 @@
harness.check(defaults.get("Tree.line"), new ColorUIResource(0, 0, 20));
harness.check(defaults.get("Tree.openIcon") instanceof MetalIconFactory.TreeFolderIcon);
harness.check(defaults.getInt("Tree.rightChildIndent"), 13);
- harness.check(defaults.getInt("Tree.rowHeight"), 0);
+ harness.check(defaults.getInt("Tree.rowHeight"), 16);
harness.check(defaults.get("Tree.scrollsOnExpand"), Boolean.TRUE);
harness.check(defaults.get("Tree.selectionBackground"), new ColorUIResource(0, 0, 28));
harness.check(defaults.get("Tree.selectionBorderColor"), new ColorUIResource(0, 0, 12));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-22 17:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1127403142.25403.29.camel@tow.toronto.redhat.com>
[not found] ` <1127407082.6513.19.camel@localhost.localdomain>
2005-09-22 17:18 ` [cp-patches]: L&F fix Lillian Angel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).