adjust how note mode button appears visually
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user