mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Add option to leave vertical gap below audio regions
This is a backport from Mixbus, to leave are 4 "open" pixels at the bottom of the track so one can see the grid-lines between tracks. This is useful with low region-transparency. grid-lines behind opaque regions are not visible.
This commit is contained in:
parent
d465a2b012
commit
f5bc64d00e
5 changed files with 37 additions and 0 deletions
|
|
@ -51,6 +51,7 @@
|
|||
#include "public_editor.h"
|
||||
#include "audio_region_view.h"
|
||||
#include "audio_streamview.h"
|
||||
#include "ui_config.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
|
|
@ -67,6 +68,7 @@ AudioTimeAxisView::AudioTimeAxisView (PublicEditor& ed, Session* sess, ArdourCan
|
|||
: SessionHandlePtr (sess)
|
||||
, RouteTimeAxisView(ed, sess, canvas)
|
||||
{
|
||||
UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &AudioTimeAxisView::parameter_changed));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -278,6 +280,14 @@ AudioTimeAxisView::route_active_changed ()
|
|||
update_control_names ();
|
||||
}
|
||||
|
||||
void
|
||||
AudioTimeAxisView::parameter_changed (string const & p)
|
||||
{
|
||||
if (p == "vertical-region-gap") {
|
||||
_view->update_contents_height ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set up the names of the controls so that they are coloured
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue