[gnome-contacts] Add extra formatting to buttons removing contacts.



commit 71f50772a7681615cc68f2e831d0648262b74248
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon Jun 26 18:22:09 2017 +0200

    Add extra formatting to buttons removing contacts.
    
    This mostly means adding the "destructive-action" styling class.
    Following discussions in #gnome-design, rename Delete to Remove.

 data/ui/contacts-list-pane.ui    |    5 ++++-
 src/contacts-contact-editor.vala |    1 +
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/data/ui/contacts-list-pane.ui b/data/ui/contacts-list-pane.ui
index f545f4b..268f018 100644
--- a/data/ui/contacts-list-pane.ui
+++ b/data/ui/contacts-list-pane.ui
@@ -90,9 +90,12 @@
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
                 <property name="focus_on_click">False</property>
-                <property name="label" translatable="yes">Delete</property>
+                <property name="label" translatable="yes">Remove</property>
                 <property name="width_request">70</property>
                 <property name="sensitive">False</property>
+                <style>
+                  <class name="destructive-action"/>
+                </style>
               </object>
               <packing>
                 <property name="pack_type">end</property>
diff --git a/src/contacts-contact-editor.vala b/src/contacts-contact-editor.vala
index 3978887..c0e9fd7 100644
--- a/src/contacts-contact-editor.vala
+++ b/src/contacts-contact-editor.vala
@@ -802,6 +802,7 @@ public class Contacts.ContactEditor : Grid {
     edit_toolbar.pack_start (linked_button);
 
     remove_button = new Button.with_label (_("Remove Contact"));
+    remove_button.get_style_context ().add_class ("destructive-action");
     edit_toolbar.pack_end (remove_button);
 
     edit_toolbar.show_all ();


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