Recover waveform-gradient-depth slider for ardour, and timeline-item-gradient-depth for mixbus

These items were likely a casualty of a merge when re-laying out the preferences panel
This commit is contained in:
Ben Loftis 2021-03-30 17:02:57 -05:00
parent b7c030b347
commit c48c09c080
1 changed files with 24 additions and 13 deletions

View File

@ -2439,19 +2439,6 @@ RCOptionEditor::RCOptionEditor ()
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_style_led)
));
if (!Profile->get_mixbus()) {
HSliderOption *gui_hs;
gui_hs = new HSliderOption(
"timeline-item-gradient-depth",
_("Waveforms color gradient depth"),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_waveform_gradient_depth),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_waveform_gradient_depth),
0, 1.0, 0.05
);
gui_hs->scale().set_update_policy (Gtk::UPDATE_DELAYED);
add_option (_("Appearance"), gui_hs);
}
if (!Profile->get_mixbus()) {
vector<string> icon_sets = ::get_icon_sets ();
if (icon_sets.size() > 1) {
@ -2555,6 +2542,30 @@ RCOptionEditor::RCOptionEditor ()
));
HSliderOption *gui_hs;
if (!Profile->get_mixbus()) {
gui_hs = new HSliderOption(
"waveform-gradient-depth",
_("Waveforms color gradient depth"),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_waveform_gradient_depth),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_waveform_gradient_depth),
0, 1.0, 0.05
);
gui_hs->scale().set_update_policy (Gtk::UPDATE_DELAYED);
add_option (_("Appearance/Editor"), gui_hs);
}
gui_hs = new HSliderOption(
"timeline-item-gradient-depth",
_("Timeline item gradient depth"),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_timeline_item_gradient_depth),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_timeline_item_gradient_depth),
0, 1.0, 0.05
);
gui_hs->scale().set_update_policy (Gtk::UPDATE_DELAYED);
add_option (_("Appearance/Editor"), gui_hs);
ComboOption<int>* emode = new ComboOption<int> (
"time-axis-name-ellipsize-mode",
_("Track name ellipsize mode"),