[gnome-contacts] CSS: Remove unused class .contacts-entry



commit c54d1bc9055d4a6109c26745d807a3dabfba1934
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Tue Jan 16 22:27:22 2018 +0100

    CSS: Remove unused class .contacts-entry

 data/ui/style.css                |   21 +++------------------
 src/contacts-contact-editor.vala |    2 --
 src/contacts-types.vala          |    1 -
 3 files changed, 3 insertions(+), 21 deletions(-)
---
diff --git a/data/ui/style.css b/data/ui/style.css
index 291b477..7613b3b 100644
--- a/data/ui/style.css
+++ b/data/ui/style.css
@@ -74,31 +74,16 @@ ContactsWindow .primary-toolbar.toolbar {
  border-color: @borders;
 }
 
-.contacts-entry {
- box-shadow: none;
- border-image: none;
- border-width: 1px;
- border-radius: 4px;
- border-style: solid;
- border-color: @borders;
-}
-
-.contacts-entry:selected,
-.contacts-entry:selected:focus {
- background-color: @theme_selected_bg_color;
- color: @theme_selected_fg_color;
-}
-
-.contacts-entry.contacts-postal-entry {
+.contacts-postal-entry {
  border-radius: 0 0 0 0;
  border-width: 1px 1px 0 1px;
 }
 
-.contacts-entry.contacts-postal-entry:nth-child(first) {
+.contacts-postal-entry:nth-child(first) {
  border-radius: 4px 4px 0 0;
 }
 
-.contacts-entry.contacts-postal-entry:nth-child(last) {
+.contacts-postal-entry:nth-child(last) {
  border-radius: 0 0 4px 4px;
  border-width: 1px;
 }
diff --git a/src/contacts-contact-editor.vala b/src/contacts-contact-editor.vala
index a0f0c29..3b88b8c 100644
--- a/src/contacts-contact-editor.vala
+++ b/src/contacts-contact-editor.vala
@@ -46,7 +46,6 @@ public class Contacts.AddressEditor : Box {
       if (postal_part != null)
        entries[i].set_text (postal_part);
 
-      entries[i].get_style_context ().add_class ("contacts-entry");
       entries[i].get_style_context ().add_class ("contacts-postal-entry");
       add (entries[i]);
 
@@ -377,7 +376,6 @@ public class Contacts.ContactEditor : Grid {
     var value_text = new TextView ();
     value_text.get_buffer ().set_text (value);
     value_text.set_hexpand (true);
-    value_text.get_style_context ().add_class ("contacts-entry");
     sw.add (value_text);
     container_grid.attach (sw, 1, row, 1, 1);
 
diff --git a/src/contacts-types.vala b/src/contacts-types.vala
index 4cef86a..de8344d 100644
--- a/src/contacts-types.vala
+++ b/src/contacts-types.vala
@@ -397,7 +397,6 @@ public class Contacts.TypeCombo : Grid  {
       });
 
     entry = new Entry ();
-    entry.get_style_context ().add_class ("contacts-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]