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.
This commit is contained in:
parent
aea3ec9a89
commit
71f50772a7
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue