diff --git a/resources/colors/colors.properties b/resources/colors/colors.properties index 54e6e9cde..04a168653 100644 --- a/resources/colors/colors.properties +++ b/resources/colors/colors.properties @@ -83,7 +83,10 @@ service.gui.TAB_TITLE_SELECTED=000000 service.gui.CALL_HISTORY_EVEN_ROW_COLOR=EFEFEF # Selection color for all lists (contact list, call list, chat rooms list, etc.) -service.gui.LIST_SELECTION_COLOR=ADD2EF +service.gui.LIST_SELECTION_COLOR=FFFFFF + +# Selection color for contact list gradient +service.gui.LIST_SELECTION_COLOR_GRADIENT=ADD2EF # Selection border color of all lists (contact list, call list, chat rooms list, etc.) service.gui.LIST_SELECTION_BORDER_COLOR=daeefd diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java index 8af4546f9..88ce13f12 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListTreeCellRenderer.java @@ -51,10 +51,6 @@ public class ContactListTreeCellRenderer */ private static final long serialVersionUID = 0L; - private static final Color glowOuterHigh = new Color(223, 238, 249, 100); - - private static final Color glowOuterLow = new Color(219, 233, 243, 100); - /** * The default height of the avatar. */ @@ -521,7 +517,8 @@ private void internalPaintComponent(Graphics2D g2) if (isSelected) { g2.setPaint(new GradientPaint(0, 0, - Color.WHITE, 0, getHeight(), Constants.SELECTED_COLOR)); + Constants.SELECTED_COLOR, 0, getHeight(), + Constants.SELECTED_GRADIENT_COLOR)); borderColor = Constants.SELECTED_COLOR; } diff --git a/src/net/java/sip/communicator/impl/gui/utils/Constants.java b/src/net/java/sip/communicator/impl/gui/utils/Constants.java index 33212d1ec..e7d9fd36d 100755 --- a/src/net/java/sip/communicator/impl/gui/utils/Constants.java +++ b/src/net/java/sip/communicator/impl/gui/utils/Constants.java @@ -83,13 +83,21 @@ public class Constants getColor("service.gui.CALL_HISTORY_EVEN_ROW_COLOR")); /** - * The end color used to paint a gradient selected background of some + * The start color used to paint a gradient selected background of some * components. */ public static Color SELECTED_COLOR = new Color(GuiActivator.getResources(). getColor("service.gui.LIST_SELECTION_COLOR")); + /** + * The end color used to paint a gradient selected background of some + * components. + */ + public static Color SELECTED_GRADIENT_COLOR + = new Color(GuiActivator.getResources() + .getColor("service.gui.LIST_SELECTION_COLOR_GRADIENT")); + /** * The start color used to paint a gradient mouse over background of some * components.