Skip to content

Commit

Permalink
Improve margin assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano committed Mar 2, 2024
1 parent eed50b3 commit 83f5bbb
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Widgets/ComboEntry.vala
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,7 @@ public class Widgets.ComboEntry : Gtk.Grid {
construct {
var case_label = new Gtk.Label (description);

var case_combobox = new Ryokucha.DropDownText () {
halign = Gtk.Align.START,
margin_top = 6,
margin_bottom = 6,
margin_start = 6,
margin_end = 6
};
var case_combobox = new Ryokucha.DropDownText ();
case_combobox.append ("space_separated", _("Space separated"));
case_combobox.append ("camel", "camelCase");
case_combobox.append ("pascal", "PascalCase");
Expand All @@ -62,14 +56,17 @@ public class Widgets.ComboEntry : Gtk.Grid {
};

copy_clipboard_button = new Gtk.Button.from_icon_name ("edit-copy") {
margin_end = 6,
sensitive = false,
tooltip_text = _("Copy to Clipboard")
};

var toolbar_grid = new Gtk.Grid () {
valign = Gtk.Align.CENTER,
margin_top = 6,
margin_bottom = 6,
margin_start = 6,
column_spacing = 6
margin_end = 6,
column_spacing = 12
};
toolbar_grid.attach (case_label, 0, 0);
toolbar_grid.attach (case_combobox, 1, 0);
Expand Down

0 comments on commit 83f5bbb

Please sign in to comment.