[gnome-contacts] contacts-header-bar: fix style



commit 91df965f36dcc8825fc3181a6eb73abeadfbeab8
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Aug 15 02:14:25 2013 -0400

    contacts-header-bar: fix style
    
    Dropped double frames
    Changed Separator for border on the right of the left-header-bar

 src/contacts-contact-pane.vala |    8 +++-----
 src/contacts-window.vala       |    3 +--
 2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index e74df07..579b7f3 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -281,9 +281,8 @@ public class Contacts.ContactPane : Notebook {
     show_no_selection_frame ();
 
     var main_sw = new ScrolledWindow (null, null);
-    main_sw.get_style_context ().add_class ("contacts-content");
 
-    main_sw.set_shadow_type (ShadowType.IN);
+    main_sw.set_shadow_type (ShadowType.NONE);
     main_sw.set_hexpand (true);
     main_sw.set_vexpand (true);
     main_sw.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
@@ -323,9 +322,8 @@ public class Contacts.ContactPane : Notebook {
 
     main_sw = new ScrolledWindow (null, null);
     top_grid.add (main_sw);
-    main_sw.get_style_context ().add_class ("contacts-content");
 
-    main_sw.set_shadow_type (ShadowType.IN);
+    main_sw.set_shadow_type (ShadowType.NONE);
     main_sw.set_hexpand (true);
     main_sw.set_vexpand (true);
     main_sw.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
@@ -496,7 +494,7 @@ public class Contacts.ContactPane : Notebook {
       icon_size_register ("ULTRABIG", 144, 144);
 
       no_selection_frame = new Frame (null);
-      no_selection_frame.get_style_context ().add_class ("contacts-content");
+      no_selection_frame.set_shadow_type (ShadowType.NONE);
       no_selection_frame.set_size_request (500, -1);
 
       var box = new Grid ();
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index b804eae..1b05475 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -44,6 +44,7 @@ public class Contacts.Window : Gtk.ApplicationWindow {
     /* titlebar */
     var titlebar = new Box (Orientation.HORIZONTAL, 0);
     left_toolbar = new HeaderBar ();
+    left_toolbar.get_style_context ().add_class ("contacts-left-header-bar");
     titlebar.add (left_toolbar);
 
     /* FIXME: Here it should not be 'All' but the source of the contacts subset your
@@ -60,8 +61,6 @@ public class Contacts.Window : Gtk.ApplicationWindow {
     select_button.add (select_image);
     left_toolbar.pack_end (select_button);
 
-    titlebar.add (new Separator (Orientation.VERTICAL));
-
     right_toolbar = new HeaderBar ();
     right_toolbar.set ("show-close-button", true);
     titlebar.pack_end (right_toolbar, true, true, 0);


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