From ed54b8ee1f433f83559b2ef7b78507f96770ae2c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 2 Jan 2025 18:14:56 -0700 Subject: [PATCH] adjust how note mode button appears visually --- gtk2_ardour/midi_cue_editor.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/midi_cue_editor.cc b/gtk2_ardour/midi_cue_editor.cc index dbb7f3d2b4..8d8afdb20b 100644 --- a/gtk2_ardour/midi_cue_editor.cc +++ b/gtk2_ardour/midi_cue_editor.cc @@ -235,10 +235,11 @@ MidiCueEditor::build_upper_toolbar () set_tooltip (full_zoom_button, _("Zoom to full clip")); set_tooltip (note_mode_button, _("Toggle between drum and regular note drawing")); + note_mode_button.set_icon (ArdourIcon::Drum); #define PX_SCALE(px) std::max((float)px, rintf((float)px * UIConfiguration::instance().get_ui_scale())) note_mode_button.set_size_request (PX_SCALE(50), -1); - note_mode_button.set_active_color (UIConfiguration::instance().color ("alert:blue")); + note_mode_button.set_active_color (UIConfiguration::instance().color ("alert:yellow")); _toolbar_outer->set_border_width (6); _toolbar_outer->set_spacing (12); @@ -2018,10 +2019,8 @@ MidiCueEditor::note_mode_clicked () assert (bg); if (bg->note_mode() == Sustained) { - note_mode_button.set_icon (ArdourIcon::Drum); set_note_mode (Percussive); } else { - note_mode_button.remove_elements (ArdourButton::VectorIcon); set_note_mode (Sustained); } }