Tweak tempo-marker grab-handle (extend left/right)

This commit is contained in:
Robin Gareus 2017-03-11 05:14:32 +01:00
parent 34d6de83a0
commit fd9330f591
1 changed files with 8 additions and 2 deletions

View File

@ -436,16 +436,22 @@ ArdourMarker::setup_name_display ()
* arbitrary 2 pixels of extra padding at the end
*/
switch (_type) {
case Mark:
case Tempo:
_name_item->hide ();
// tip's x-pos is at "M3", box is 2x marker's
_name_background->set_x0 (-M3);
_name_background->set_x1 (3 * M3);
break;
case Mark:
case Meter:
_name_background->set_x0 (M3);
_name_background->set_x1 (_name_item->position().x + name_width + padding);
break;
default:
_name_background->set_x0 (0);
_name_background->set_x1 (_name_item->position().x + name_width + padding);
break;
}
_name_background->set_x1 (_name_item->position().x + name_width + padding);
}
}