diff options
author | Robin Gareus <robin@gareus.org> | 2019-04-10 21:03:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-04-10 21:50:55 +0200 |
commit | f5bc64d00e898ae02e3964f530155d8130584967 (patch) | |
tree | 1584e473013e010b6e7c74ae9bee161ad952c7f8 /gtk2_ardour/rc_option_editor.cc | |
parent | d465a2b0124468a085e0a78898279f167095fdc1 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 6552b65077..c906e96c66 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -3666,6 +3666,19 @@ RCOptionEditor::RCOptionEditor () sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_color_regions_using_track_color) )); +#ifndef MIXBUS // hide this setting in Mixbus. Always on, 4px + ComboOption<uint32_t>* gap = new ComboOption<uint32_t> ( + "vertical-region-gap", + _("Add a visual gap below Audio Regions"), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_vertical_region_gap), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_vertical_region_gap) + ); + gap->add (0, _("None")); + gap->add (2, _("Small")); + gap->add (4, _("Large")); + add_option (_("Appearance/Editor"), gap); +#endif + add_option (_("Appearance/Editor"), new OptionEditorHeading (_("Waveforms"))); if (!Profile->get_mixbus()) { |