[gnome-contacts] Display (via phone) darker when selected
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Display (via phone) darker when selected
- Date: Thu, 30 Jun 2011 13:30:54 +0000 (UTC)
commit 67f71a90bd463a436786cc92a8beaf4c2c0cd719
Author: Alexander Larsson <alexl redhat com>
Date: Wed Jun 29 10:29:03 2011 +0200
Display (via phone) darker when selected
src/contacts-list-pane.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]