Add option to disable blinking alert buttons.

This commit is contained in:
Robin Gareus 2017-03-26 21:42:01 +02:00
parent 5ac2d6dcd8
commit 47ea6534d0
4 changed files with 19 additions and 2 deletions

View file

@ -2616,11 +2616,15 @@ void
ARDOUR_UI::blink_handler (bool blink_on) ARDOUR_UI::blink_handler (bool blink_on)
{ {
transport_rec_enable_blink (blink_on); transport_rec_enable_blink (blink_on);
solo_blink (blink_on);
sync_blink (blink_on); sync_blink (blink_on);
if (!UIConfiguration::instance().get_blink_alert_indicators()) {
blink_on = true;
}
error_blink (blink_on);
solo_blink (blink_on);
audition_blink (blink_on); audition_blink (blink_on);
feedback_blink (blink_on); feedback_blink (blink_on);
error_blink (blink_on);
} }
void void

View file

@ -1178,6 +1178,10 @@ MonitorSection::map_state ()
void void
MonitorSection::do_blink (bool onoff) MonitorSection::do_blink (bool onoff)
{ {
if (!UIConfiguration::instance().get_blink_alert_indicators ()) {
onoff = true;
}
solo_blink (onoff); solo_blink (onoff);
audition_blink (onoff); audition_blink (onoff);
} }

View file

@ -3562,6 +3562,14 @@ RCOptionEditor::RCOptionEditor ()
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_blink_rec_arm) sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_blink_rec_arm)
)); ));
add_option (_("Appearance"),
new BoolOption (
"blink-alert-indicators",
_("Blink Alert Indicators"),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_blink_alert_indicators),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_blink_alert_indicators)
));
#ifndef __APPLE__ #ifndef __APPLE__
/* font scaling does nothing with GDK/Quartz */ /* font scaling does nothing with GDK/Quartz */

View file

@ -22,6 +22,7 @@ UI_CONFIG_VARIABLE (std::string, ui_rc_file, "ui-rc-file", "clearlooks.rc")
UI_CONFIG_VARIABLE (std::string, color_file, "color-file", "dark") UI_CONFIG_VARIABLE (std::string, color_file, "color-file", "dark")
UI_CONFIG_VARIABLE (bool, flat_buttons, "flat-buttons", false) UI_CONFIG_VARIABLE (bool, flat_buttons, "flat-buttons", false)
UI_CONFIG_VARIABLE (bool, blink_rec_arm, "blink-rec-arm", false) UI_CONFIG_VARIABLE (bool, blink_rec_arm, "blink-rec-arm", false)
UI_CONFIG_VARIABLE (bool, blink_alert_indicators, "blink-alert-indicators", true)
UI_CONFIG_VARIABLE (float, waveform_gradient_depth, "waveform-gradient-depth", 0) UI_CONFIG_VARIABLE (float, waveform_gradient_depth, "waveform-gradient-depth", 0)
UI_CONFIG_VARIABLE (float, timeline_item_gradient_depth, "timeline-item-gradient-depth", 0.5) UI_CONFIG_VARIABLE (float, timeline_item_gradient_depth, "timeline-item-gradient-depth", 0.5)
UI_CONFIG_VARIABLE (bool, all_floating_windows_are_dialogs, "all-floating-windows-are-dialogs", false) UI_CONFIG_VARIABLE (bool, all_floating_windows_are_dialogs, "all-floating-windows-are-dialogs", false)