From cc5bd6c63ae5c35475d0a9e9b7563b3014264c48 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 10 Nov 2023 14:33:39 -0700 Subject: [PATCH] provide a (visible) UI preferences option for no-strobe --- gtk2_ardour/configuration_metadata.h | 1 + gtk2_ardour/rc_option_editor.cc | 10 ++++++++++ gtk2_ardour/ui_config_vars.h | 1 + 3 files changed, 12 insertions(+) diff --git a/gtk2_ardour/configuration_metadata.h b/gtk2_ardour/configuration_metadata.h index cce9bf59aa..c9b5eddfd9 100644 --- a/gtk2_ardour/configuration_metadata.h +++ b/gtk2_ardour/configuration_metadata.h @@ -13,6 +13,7 @@ UIConfiguration::build_metadata () VAR_META (X_("autoscroll-editor"), _("scroll"), _("editor"), NULL); VAR_META (X_("blink-alert-indicators"), _("blink"), _("alert"), _("indicators"), NULL); VAR_META (X_("blink-rec-arm"), _("appearance"), _("blink"), _("record"), _("rec"), _("enable"), _("rec-enable"), _("record-enable"), NULL); + VAR_META (X_("no-strobe"), _("appearance"), _("blink"), _("flash"), _("strobe"), NULL); VAR_META (X_("boxy-buttons"), _("appearance"), _("style"), _("boxy"), _("buttons"), _("theme"), NULL); VAR_META (X_("buggy-gradients"), _("appearance"), _("bugs"), _("tweaks"), _("kwirks"), NULL); VAR_META (X_("check-announcements"), _("check"), _("announcements"), _("phone"), _("home"), NULL); diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index cd302f3f8d..449e09e80b 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -2607,6 +2607,16 @@ RCOptionEditor::RCOptionEditor () sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_blink_alert_indicators) )); + BoolOption* strobe = new BoolOption ( + "no-strobe", + _("Avoid strobing/blinking/flashing elements"), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_no_strobe), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_no_strobe) + ); + + Gtkmm2ext::UI::instance()->set_tip (strobe->tip_widget(), _("If enabled, disables meters in editor & mixer, running clock updates and most blinking")); + add_option (_("Appearance"), strobe); + add_option (_("Appearance/Recorder"), new OptionEditorHeading (_("Input Meter Layout"))); ComboOption* iml = new ComboOption ( diff --git a/gtk2_ardour/ui_config_vars.h b/gtk2_ardour/ui_config_vars.h index 48737a69fa..d922f6bb0e 100644 --- a/gtk2_ardour/ui_config_vars.h +++ b/gtk2_ardour/ui_config_vars.h @@ -163,3 +163,4 @@ UI_CONFIG_VARIABLE (bool, show_on_cue_page, "show-on-cue-page", true) UI_CONFIG_VARIABLE (uint32_t, insert_at_position, "insert-at-position", 3) UI_CONFIG_VARIABLE (Editing::NoteNameDisplay, note_name_display, "note-name-display", Editing::Always) UI_CONFIG_VARIABLE (bool, scroll_velocity_editing, "scroll-velocity-editing", true) +UI_CONFIG_VARIABLE (bool, no_strobe, "no-strobe", false)