[gnome-contacts] ContactPane: refine select of Select a contact



commit a9312a9d0edd51478263e018432e3f3296496a55
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sat Aug 17 14:41:43 2013 -0400

    ContactPane: refine select of Select a contact
    
    Added css class to match the mockup
    Added some margin_bottom to the box as hack to try and center
    vertically the watermark
    
    Note: This one requires of a patch against gnome-themes-standard

 src/contacts-contact-pane.vala |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index cefe39c..d90ae93 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -507,12 +507,15 @@ public class Contacts.ContactPane : Notebook {
       box.set_halign (Align.CENTER);
       box.set_vexpand (true);
       box.set_hexpand (true);
+      box.margin_bottom = 60;
 
       var image = new Image.from_icon_name ("avatar-default-symbolic", icon_size_from_name ("ULTRABIG"));
-      image.get_style_context ().add_class ("dim-label");
+      image.get_style_context ().add_class ("contacts-watermark");
       box.add (image);
 
-      var label = new Gtk.Label (_("Select a contact"));
+      var label = new Gtk.Label ("");
+      label.set_markup ("<span font=\"12\">%s</span>".printf (_("Select a contact")));
+      label.get_style_context ().add_class ("contacts-watermark");
       box.add (label);
 
       no_selection_frame.add (box);


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