[simple-scan] Make ActionBar buttons wide to match design



commit fb34dca0889b499239516ad922897b00ff3e1ba5
Author: Robert Ancell <robert ancell canonical com>
Date:   Sun Sep 9 15:51:25 2018 +1200

    Make ActionBar buttons wide to match design

 src/app-window.vala | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index e6b9f2c..b1cdac5 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -1596,6 +1596,8 @@ public class AppWindow : Gtk.ApplicationWindow
 
         button = new Gtk.Button.from_icon_name ("object-rotate-left-symbolic");
         button.visible = true;
+        button.image.margin_start = 18;
+        button.image.margin_end = 18;
         /* Tooltip for rotate left (counter-clockwise) button */
         button.tooltip_text = _("Rotate the page to the left (counter-clockwise)");
         button.clicked.connect (rotate_left_button_clicked_cb);
@@ -1603,6 +1605,8 @@ public class AppWindow : Gtk.ApplicationWindow
 
         button = new Gtk.Button.from_icon_name ("object-rotate-right-symbolic");
         button.visible = true;
+        button.image.margin_start = 18;
+        button.image.margin_end = 18;
         /* Tooltip for rotate right (clockwise) button */
         button.tooltip_text = _("Rotate the page to the right (clockwise)");
         button.clicked.connect (rotate_right_button_clicked_cb);
@@ -1612,6 +1616,8 @@ public class AppWindow : Gtk.ApplicationWindow
         crop_button.visible = true;
         var image = new Gtk.Image.from_icon_name ("edit-cut-symbolic", Gtk.IconSize.BUTTON);
         image.visible = true;
+        image.margin_start = 18;
+        image.margin_end = 18;
         crop_button.add (image);
         /* Tooltip for crop button */
         crop_button.tooltip_text = _("Crop the selected page");
@@ -1629,6 +1635,8 @@ public class AppWindow : Gtk.ApplicationWindow
 
         delete_button = new Gtk.Button.from_icon_name ("user-trash-symbolic");
         delete_button.visible = true;
+        delete_button.image.margin_start = 18;
+        delete_button.image.margin_end = 18;
         /* Tooltip for delete button */
         delete_button.tooltip_text = _("Delete the selected page");
         delete_button.clicked.connect (() => { book_view.book.delete_page (book_view.selected_page); });


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