diff options
author | Yana Stamcheva <yana@jitsi.org> | 2008-09-10 20:44:05 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2008-09-10 20:44:05 +0000 |
commit | 0c40c5109ac460c2286e10acc1a7d28d11e6fd8b (patch) | |
tree | 611107128f3ddcabb3aeb09b06f6a27d128df783 /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java | |
parent | 04d5a4c7e3fdc94f039808702c01910ffae42db7 (diff) | |
download | jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.zip jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.tar.gz jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.tar.bz2 |
- Added some new color constants.
- Added set/getSize and set/getLocation methods to the UIService.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java index 01a4e7f..bdcea9e 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java @@ -242,7 +242,14 @@ public class ContactListCellRenderer if (!this.isLeaf) { - g2.setColor(Constants.CONTACT_LIST_GROUP_BG_COLOR); + GradientPaint p = new GradientPaint(this.getWidth()/2, 0, + Constants.CONTACT_LIST_GROUP_BG_COLOR, + this.getWidth()/2, + this.getHeight(), + Constants.CONTACT_LIST_GROUP_BG_GRADIENT_COLOR); + + g2.setPaint(p); + g2.fillRoundRect(1, 1, this.getWidth(), this.getHeight() - 1, 7, 7); } else if (index%2 > 0) @@ -316,4 +323,4 @@ public class ContactListCellRenderer return toolTipText; } -} +}
\ No newline at end of file |