Change color of nudge-buttons depending on selection.

Experimental.
This indicates region selection:
  * nudge region(s): red
  * nudge playhead or marker(s): default gray

This does not indicate marker selection (nudge marker vs playhead),
nor does it change when primary-modifier is held (force playhead
nudge).
This commit is contained in:
Robin Gareus 2018-10-04 21:55:44 +02:00
parent 07ddf6cb36
commit 55596e2bf0

View File

@ -1571,8 +1571,20 @@ Editor::region_selection_changed ()
}
}
if ( _session->solo_selection_active() )
if (_session->solo_selection_active()) {
play_solo_selection(false);
}
/* set nudge button color */
if (! get_regions_from_selection_and_entered().empty()) {
/* nudge regions */
nudge_forward_button.set_name ("nudge button");
nudge_backward_button.set_name ("nudge button");
} else {
/* nudge marker or playhead */
nudge_forward_button.set_name ("generic button");
nudge_backward_button.set_name ("generic button");
}
}
void