public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Lillian Angel <langel@redhat.com>
To: Roman Kennke <roman@kennke.org>
Cc: mauve-discuss@sources.redhat.com
Subject: Re: [cp-patches]: L&F fix
Date: Thu, 22 Sep 2005 17:18:00 -0000	[thread overview]
Message-ID: <1127409446.3001.2.camel@tow.toronto.redhat.com> (raw)
In-Reply-To: <1127407082.6513.19.camel@localhost.localdomain>

[-- 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));

           reply	other threads:[~2005-09-22 17:18 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1127407082.6513.19.camel@localhost.localdomain>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1127409446.3001.2.camel@tow.toronto.redhat.com \
    --to=langel@redhat.com \
    --cc=mauve-discuss@sources.redhat.com \
    --cc=roman@kennke.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).