[gnome-contacts] Style editing widgets like the mockups



commit 7e7ce8520b2598f9d65e35d5b4dcc5ab0822f0c1
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Aug 23 14:19:48 2011 +0200

    Style editing widgets like the mockups

 data/gnome-contacts.css        |   17 +++++++++++++++++
 src/contacts-contact-pane.vala |    2 ++
 src/contacts-types.vala        |    2 ++
 3 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-contacts.css b/data/gnome-contacts.css
index 7d119f4..4910e8c 100644
--- a/data/gnome-contacts.css
+++ b/data/gnome-contacts.css
@@ -17,6 +17,23 @@ ContactsListPane GtkTreeView {
     border-image: none;
 }
 
+.contact-entry {
+    border-image: none;
+    border-width: 1;
+    border-style: solid;
+    border-color: #bbbeb7;
+    background-image: none;
+}
+
+.contact-combo .button {
+    border-image: none;
+    border-width: 1;
+    border-style: solid;
+    border-color: #bbbeb7;
+    background-image: none;
+    background-color: #ffffff;
+}
+
 .contact-button {
     border-image: none;
     border-width: 0;
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index d5724f5..6d20cb1 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -106,6 +106,7 @@ class Contacts.DetailsLayout : Object {
 
   public Entry add_entry (string val) {
     var entry = new Entry ();
+    entry.get_style_context ().add_class ("contact-entry");
     entry.set_text (val);
     entry.set_valign (Align.CENTER);
     entry.set_halign (Align.FILL);
@@ -796,6 +797,7 @@ public class Contacts.ContactPane : EventBox {
     layout.current_row.add (g);
 
     var e = new Entry ();
+    e.get_style_context ().add_class ("contact-entry");
     e.set ("placeholder-text", _("Enter name"));
     e.set_data ("original-text", contact.display_name);
     e.set_text (contact.display_name);
diff --git a/src/contacts-types.vala b/src/contacts-types.vala
index 3c6efb7..1b7388d 100644
--- a/src/contacts-types.vala
+++ b/src/contacts-types.vala
@@ -341,6 +341,7 @@ public class Contacts.TypeCombo : Grid  {
     this.type_set = type_set;
 
     combo = new ComboBox.with_model (type_set.store);
+    combo.get_style_context ().add_class ("contact-combo");
     combo.set_halign (Align.FILL);
     combo.set_hexpand (true);
     this.add (combo);
@@ -356,6 +357,7 @@ public class Contacts.TypeCombo : Grid  {
       });
 
     entry = new Entry ();
+    entry.get_style_context ().add_class ("contact-entry");
     entry.set_halign (Align.FILL);
     entry.set_hexpand (true);
     // Make the default entry small so we don't unnecessarily



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