13
0

Use attachment icons

This commit is contained in:
Robin Gareus 2024-11-09 01:09:13 +01:00
parent f3ff1a1100
commit 2e4f0e8181
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -65,6 +65,18 @@ Tabbable::default_layout ()
right_attachment_button.set_text (_("Right")); right_attachment_button.set_text (_("Right"));
bottom_attachment_button.set_text (_("Btm")); bottom_attachment_button.set_text (_("Btm"));
left_attachment_button.set_icon (ArdourIcon::AttachmentLeft);
right_attachment_button.set_icon (ArdourIcon::AttachmentRight);
bottom_attachment_button.set_icon (ArdourIcon::AttachmentBottom);
left_attachment_button.set_name ("lock button"); // XXX re-use netural "fill active" bg style of "lock"
right_attachment_button.set_name ("lock button"); // TODO create dedicate button style
bottom_attachment_button.set_name ("lock button");
left_attachment_button.set_tweaks (ArdourButton::ExpandtoSquare);
right_attachment_button.set_tweaks (ArdourButton::ExpandtoSquare);
bottom_attachment_button.set_tweaks (ArdourButton::ExpandtoSquare);
content_attachment_hbox.set_border_width(3); content_attachment_hbox.set_border_width(3);
content_attachment_hbox.set_spacing(3); content_attachment_hbox.set_spacing(3);
content_attachment_hbox.pack_end (right_attachment_button, false, false); content_attachment_hbox.pack_end (right_attachment_button, false, false);