[gnome-contacts] colors: fixed background



commit 69b63120df87ba191409ffb47efed98782688e40
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sat Aug 17 11:52:52 2013 -0400

    colors: fixed background
    
    Fixed background color in Contacts.List
    Fixed background color in "Select a contact" view
    
    Fixes bug: https://bugzilla.gnome.org/show_bug.cgi?id=705972

 src/contacts-contact-pane.vala |    4 ++++
 src/contacts-list-pane.vala    |    1 -
 src/contacts-view.vala         |    5 +++++
 3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 579b7f3..cefe39c 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -497,6 +497,10 @@ public class Contacts.ContactPane : Notebook {
       no_selection_frame.set_shadow_type (ShadowType.NONE);
       no_selection_frame.set_size_request (500, -1);
 
+      var color = Gdk.RGBA ();
+      color.parse ("#f1f2f1");
+      no_selection_frame.override_background_color (0, color);
+
       var box = new Grid ();
       box.set_orientation (Orientation.VERTICAL);
       box.set_valign (Align.CENTER);
diff --git a/src/contacts-list-pane.vala b/src/contacts-list-pane.vala
index 5ac4c4b..f80334e 100644
--- a/src/contacts-list-pane.vala
+++ b/src/contacts-list-pane.vala
@@ -70,7 +70,6 @@ public class Contacts.ListPane : Frame {
   }
 
   public ListPane (Store contacts_store) {
-    this.get_style_context ().add_class (STYLE_CLASS_SIDEBAR);
     this.contacts_store = contacts_store;
     this.contacts_view = new View (contacts_store);
     var toolbar = new Toolbar ();
diff --git a/src/contacts-view.vala b/src/contacts-view.vala
index b70f57e..11ac30c 100644
--- a/src/contacts-view.vala
+++ b/src/contacts-view.vala
@@ -112,6 +112,11 @@ public class Contacts.View : ListBox {
     contacts_store.changed.connect (contact_changed_cb);
     foreach (var c in store.get_contacts ())
       contact_added_cb (store, c);
+
+    /* background color */
+    var color = Gdk.RGBA ();
+    color.parse ("#ebedeb");
+    override_background_color (0, color);
   }
 
   private int compare_data (ContactDataRow a_data, ContactDataRow b_data) {


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