mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
substantial changes in color management, involving a reduction in the use of Gdk::Color and more consistent logic for region coloring.
Group tabs now also get the text drawn in an appropriately contrast-y color
This commit is contained in:
parent
438179d278
commit
ce08ec0de0
31 changed files with 287 additions and 259 deletions
|
|
@ -743,7 +743,7 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move)
|
|||
|
||||
if (first_move) {
|
||||
rv->drag_start ();
|
||||
rv->fake_set_opaque (true);
|
||||
rv->set_opacity_for_drag (true);
|
||||
|
||||
/* reparent the regionview into a group above all
|
||||
* others
|
||||
|
|
@ -938,6 +938,10 @@ RegionMoveDrag::motion (GdkEvent* event, bool first_move)
|
|||
void
|
||||
RegionMotionDrag::finished (GdkEvent *, bool)
|
||||
{
|
||||
for (list<DraggingView>::iterator i = _views.begin(); i != _views.end(); ++i) {
|
||||
i->view->set_opacity_for_drag (false);
|
||||
}
|
||||
|
||||
for (vector<TimeAxisView*>::iterator i = _time_axis_views.begin(); i != _time_axis_views.end(); ++i) {
|
||||
if (!(*i)->view()) {
|
||||
continue;
|
||||
|
|
@ -1196,7 +1200,7 @@ RegionMoveDrag::finished_no_copy (
|
|||
visible.
|
||||
*/
|
||||
rv->hide_region_editor();
|
||||
rv->fake_set_opaque (false);
|
||||
rv->set_opacity_for_drag (false);
|
||||
|
||||
remove_region_from_playlist (rv->region(), i->initial_playlist, modified_playlists);
|
||||
|
||||
|
|
@ -1431,7 +1435,7 @@ RegionMotionDrag::aborted (bool)
|
|||
rv->get_canvas_group()->reparent (rtv->view()->canvas_item());
|
||||
rv->get_canvas_group()->set_y_position (0);
|
||||
rv->drag_end ();
|
||||
rv->fake_set_opaque (false);
|
||||
rv->set_opacity_for_drag (false);
|
||||
rv->move (-_total_x_delta, 0);
|
||||
rv->set_height (rtv->view()->child_height ());
|
||||
}
|
||||
|
|
@ -1833,7 +1837,7 @@ VideoTimeLineDrag::motion (GdkEvent* event, bool first_move)
|
|||
DEBUG_TRACE (DEBUG::Drags, string_compose("SHIFT REGION at %1 by %2\n", i->initial_position, dt));
|
||||
if (first_move) {
|
||||
rv->drag_start ();
|
||||
rv->fake_set_opaque (true);
|
||||
rv->set_opacity_for_drag (true);
|
||||
rv->region()->clear_changes ();
|
||||
rv->region()->suspend_property_changes();
|
||||
}
|
||||
|
|
@ -1881,7 +1885,7 @@ VideoTimeLineDrag::finished (GdkEvent * /*event*/, bool movement_occurred)
|
|||
|
||||
for (list<AVDraggingView>::iterator i = _views.begin(); i != _views.end(); ++i) {
|
||||
i->view->drag_end();
|
||||
i->view->fake_set_opaque (false);
|
||||
i->view->set_opacity_for_drag (false);
|
||||
i->view->region()->resume_property_changes ();
|
||||
|
||||
_editor->session()->add_command (new StatefulDiffCommand (i->view->region()));
|
||||
|
|
@ -2017,7 +2021,7 @@ TrimDrag::motion (GdkEvent* event, bool first_move)
|
|||
|
||||
for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ++i) {
|
||||
RegionView* rv = i->view;
|
||||
rv->fake_set_opaque (false);
|
||||
rv->set_opacity_for_drag (false);
|
||||
rv->enable_display (false);
|
||||
rv->region()->playlist()->clear_owned_changes ();
|
||||
|
||||
|
|
@ -2200,7 +2204,7 @@ TrimDrag::finished (GdkEvent* event, bool movement_occurred)
|
|||
for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ++i) {
|
||||
i->view->thaw_after_trim ();
|
||||
i->view->enable_display (true);
|
||||
i->view->fake_set_opaque (true);
|
||||
i->view->set_opacity_for_drag (true);
|
||||
|
||||
/* Trimming one region may affect others on the playlist, so we need
|
||||
to get undo Commands from the whole playlist rather than just the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue