Add a separator between script and window buttons

This commit is contained in:
Robin Gareus 2021-02-25 14:29:12 +01:00
parent 4521bf9158
commit d124b3600b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 9 additions and 0 deletions

View File

@ -507,6 +507,7 @@ private:
ArdourWidgets::ArdourVSpacer recpunch_spacer;
ArdourWidgets::ArdourVSpacer latency_spacer;
ArdourWidgets::ArdourVSpacer monitor_spacer;
ArdourWidgets::ArdourVSpacer scripts_spacer;
ArdourWidgets::ArdourButton monitor_dim_button;
ArdourWidgets::ArdourButton monitor_mono_button;

View File

@ -619,6 +619,9 @@ ARDOUR_UI::setup_transport ()
}
col += MAX_LUA_ACTION_BUTTONS / 2;
transport_table.attach (scripts_spacer, TCOL, 0, 2 , SHRINK, EXPAND|FILL, 3, 0);
++col;
transport_table.attach (recorder_visibility_button, TCOL, 0, 1 , FILL, SHRINK, hpadding, vpadding);
transport_table.attach (mixer_visibility_button, col, col + 2, 1, 2 , FILL, SHRINK, hpadding, vpadding);
++col;

View File

@ -457,6 +457,11 @@ ARDOUR_UI::parameter_changed (std::string p)
action_script_call_btn[i].hide();
}
}
if (cols == 0) {
scripts_spacer.hide ();
} else {
scripts_spacer.show ();
}
} else if (p == "layered-record-mode") {
layered_button.set_active (_session->config.get_layered_record_mode ());
} else if (p == "flat-buttons") {