[gnome-contacts] Make card on the right look like mockup



commit 62f68a14ecef0c7ebd9228cc79eed309c506b205
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Aug 26 10:13:08 2011 +0200

    Make card on the right look like mockup

 src/contacts-contact-pane.vala |    7 +++++--
 src/contacts-contact.vala      |    3 ++-
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index a989f31..b16d399 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -710,17 +710,19 @@ public class Contacts.ContactPane : EventBox {
     card_layout.current_row.add (g);
 
     var l = new Label (null);
-    l.set_markup ("<span font='22'><b>" + contact.display_name + "</b></span>");
+    l.set_markup ("<span font='24px'>" + contact.display_name + "</span>");
     l.set_hexpand (true);
     l.set_halign (Align.START);
     l.set_valign (Align.START);
+    l.set_margin_top (4);
     l.set_ellipsize (Pango.EllipsizeMode.END);
     l.xalign = 0.0f;
     g.attach (l,  0, 0, 1, 1);
 
     var nick = contact.individual.nickname;
     if (nick != null && nick.length > 0) {
-      l = new Label ("\xE2\x80\x9C" + nick + "\xE2\x80\x9D");
+      l = new Label (null);
+      l.set_markup ("<span font='12px' rise='1000'>\xE2\x80\x9C" + nick + "\xE2\x80\x9D</span>");
       l.set_halign (Align.START);
       l.set_valign (Align.START);
       l.set_ellipsize (Pango.EllipsizeMode.END);
@@ -741,6 +743,7 @@ public class Contacts.ContactPane : EventBox {
     merged_presence.set_halign (Align.START);
     merged_presence.set_valign (Align.END);
     merged_presence.set_vexpand (true);
+    merged_presence.set_margin_bottom (18);
     g.attach (merged_presence,  0, 3, 1, 1);
   }
 
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 2206f98..81611fe 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -64,7 +64,8 @@ public class Contacts.ContactPresence : Grid {
     if (message.length == 0)
       message = Contact.presence_to_string (type);
 
-    label.set_text (message);
+    label.set_markup ("<span font='11px'>" + message + "</span>");
+    label.set_margin_bottom (3);
 
     if (is_phone)
       phone_image.show ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]