[gnome-contacts] Update style for latest gtk+ master



commit 8c9231e98857385d3aaf87fe8ea2c9719fdfbca6
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 25 19:11:37 2011 +0200

    Update style for latest gtk+ master

 data/gnome-contacts.css |   15 ++++++++++++---
 src/contacts-app.vala   |    4 +++-
 2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/data/gnome-contacts.css b/data/gnome-contacts.css
index 1a0b2c4..51156b4 100644
--- a/data/gnome-contacts.css
+++ b/data/gnome-contacts.css
@@ -4,22 +4,31 @@ ContactsApp > GtkFrame.frame {
     padding: 0 1 1 1;
 }
 
-.contactframe {
+.contact-frame {
     border-style: solid;
     border-radius: 2;
     border-width: 2;
     padding: 1;
 }
 
-ContactsApp GtkEventBox {
+.contact-pane {
     background-color: #ffffff;
 }
 
+.contact-pane .clickable {
+    background-color: #ffffff;
+}
 
 .clickable:prelight,
 .clickable:prelight:active,
-.clickable:active{
+.clickable:active {
     background-color: @selected_bg_color;
     border-radius: 0;
     color: #ffffff;
 }
+
+.clickable :prelight,
+.clickable :prelight:active,
+.clickable :active {
+    color: #ffffff;
+}
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 40a8325..6318cb6 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -194,7 +194,7 @@ public class Contacts.App : Window {
 
     var image_frame = new Frame (null);
     label_size_group.add_widget (image_frame);
-    image_frame.get_style_context ().add_class ("contactframe");
+    image_frame.get_style_context ().add_class ("contact-frame");
     image_frame.set_shadow_type (ShadowType.OUT);
     var image = new Image ();
     image.set_size_request (100, 100);
@@ -440,6 +440,7 @@ public class Contacts.App : Window {
     scrolled.add (contacts_tree_view);
 
     var ebox = new EventBox ();
+    ebox.get_style_context ().add_class ("contact-pane");
     ebox.set_hexpand (true);
     grid.attach (ebox, 1, 0, 1, 2);
 
@@ -460,6 +461,7 @@ public class Contacts.App : Window {
     fields_grid = new Grid ();
     fields_grid.set_orientation (Orientation.VERTICAL);
     fields_scrolled.add_with_viewport (fields_grid);
+    fields_scrolled.get_child().get_style_context ().add_class ("contact-pane");
 
     right_grid.attach (fields_scrolled, 0, 1, 1, 1);
 



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