[gnome-contacts] Minor css cleanup



commit bd4b2f85923b0466018b7d84c363702b122c8e38
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jan 17 16:20:18 2012 +0100

    Minor css cleanup

 data/gnome-contacts.css        |   13 +++++++++----
 src/contacts-contact-pane.vala |    7 +++++--
 2 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/data/gnome-contacts.css b/data/gnome-contacts.css
index 2eaa5f3..4544ab2 100644
--- a/data/gnome-contacts.css
+++ b/data/gnome-contacts.css
@@ -1,3 +1,12 @@
+.contacts-content.frame {
+    border-width: 1 0 0 0;
+    border-radius: 0;
+}
+
+.contacts-main-view.view {
+    background-color: #f1f2f1;
+}
+
 ContactsListPane {
     border-style: solid;
     border-width: 0 1 0 0;
@@ -81,10 +90,6 @@ ContactsViewWidget {
     color: #ffffff;
 }
 
-.contact-pane {
-    background-color: @bg_color;
-}
-
 .notification {
     border-style: solid;
     border-color: #949486;
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 4fb95eb..f6a73cc 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1999,8 +1999,10 @@ public class Contacts.ContactPane : ScrolledWindow {
     }
   }
 
-
   public ContactPane (Store contacts_store) {
+    this.get_style_context ().add_class ("contacts-content");
+    this.set_shadow_type (ShadowType.IN);
+
     this.contacts_store = contacts_store;
     row_group = new RowGroup(3);
     row_group.set_column_min_width (0, 32);
@@ -2031,7 +2033,8 @@ public class Contacts.ContactPane : ScrolledWindow {
 	return false;
       });
 
-    this.get_child().get_style_context ().add_class ("contact-pane");
+    this.get_child().get_style_context ().add_class ("contacts-main-view");
+    this.get_child().get_style_context ().add_class ("view");
 
     card_row = new FieldRow (row_group);
     top_grid.add (card_row);



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