From 67f71a90bd463a436786cc92a8beaf4c2c0cd719 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 29 Jun 2011 10:29:03 +0200 Subject: Display (via phone) darker when selected --- src/contacts-list-pane.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/contacts-list-pane.vala') diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala index b837388..9fd4659 100644 --- a/src/contacts-list-pane.vala +++ b/src/contacts-list-pane.vala @@ -84,7 +84,10 @@ public class Contacts.CellRendererShape : Gtk.CellRenderer { m = Contact.presence_to_string (presence); str += " " + m; if (is_phone) { - a = Pango.attr_foreground_new (0x8e8e, 0x9191, 0x9292); + if ((flags & CellRendererState.SELECTED) != 0) + a = Pango.attr_foreground_new (0xffff-0x8e8e, 0xffff-0x9191, 0xffff-0x9292); + else + a = Pango.attr_foreground_new (0x8e8e, 0x9191, 0x9292); a.start_index = str.length; str += " (via phone)"; a.end_index = str.length; -- cgit v1.2.1