RecorderUI: consistent rec-arm button size

The rec-arm circle diameter is given by 0.5 * min (width, height).
For mono tracks the diameter is limited with the height of the
track. When more channel meters are visible the height increases and
the rec-arm circle grows.

The solution here is to constrain the rec-arm button width to its
minimum and not grow to have the same width as other buttons.

This also changes the default meter-height so mono and stereo tracks
have the same height (with default scaling).
This commit is contained in:
Robin Gareus 2021-02-26 00:02:50 +01:00
parent 611fff21ae
commit ad9e44e92a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -130,7 +130,7 @@ TrackRecordAxis::TrackRecordAxis (Session* s, boost::shared_ptr<ARDOUR::Route> r
_level_meter = new LevelMeterVBox (s);
_level_meter->set_meter (_route->shared_peak_meter ().get ());
_level_meter->clear_meters ();
_level_meter->setup_meters (120, 12);
_level_meter->setup_meters (120, 10, 3);
name_label.set_name (X_("TrackNameEditor"));
name_label.set_alignment (0.0, 0.5);
@ -179,7 +179,6 @@ TrackRecordAxis::TrackRecordAxis (Session* s, boost::shared_ptr<ARDOUR::Route> r
update_sensitivity ();
_track_number_size_group->add_widget (_number_label);
_ctrls_button_size_group->add_widget (*rec_enable_button);
_ctrls_button_size_group->add_widget (*mute_button);
_ctrls_button_size_group->add_widget (_playlist_button);
_monitor_ctrl_size_group->add_widget (*monitor_input_button);