mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Use track colours for the summary view.
git-svn-id: svn://localhost/ardour2/branches/3.0@5184 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eed07f4516
commit
3f261ac90c
1 changed files with 3 additions and 5 deletions
|
|
@ -162,7 +162,6 @@ EditorSummary::render (cairo_t* cr)
|
||||||
|
|
||||||
/* render regions */
|
/* render regions */
|
||||||
|
|
||||||
int n = 0;
|
|
||||||
double y = 0;
|
double y = 0;
|
||||||
for (PublicEditor::TrackViewList::const_iterator i = _editor->track_views.begin(); i != _editor->track_views.end(); ++i) {
|
for (PublicEditor::TrackViewList::const_iterator i = _editor->track_views.begin(); i != _editor->track_views.end(); ++i) {
|
||||||
StreamView* s = (*i)->view ();
|
StreamView* s = (*i)->view ();
|
||||||
|
|
@ -171,8 +170,8 @@ EditorSummary::render (cairo_t* cr)
|
||||||
double const h = (*i)->effective_height () * _vertical_scale;
|
double const h = (*i)->effective_height () * _vertical_scale;
|
||||||
cairo_set_line_width (cr, h);
|
cairo_set_line_width (cr, h);
|
||||||
|
|
||||||
double const v = ((n % 2) == 0) ? 1 : 0.5;
|
Gdk::Color const c = (*i)->color ();
|
||||||
cairo_set_source_rgb (cr, v, v, v);
|
cairo_set_source_rgb (cr, c.get_red_p (), c.get_green_p(), c.get_blue_p());
|
||||||
|
|
||||||
s->foreach_regionview (bind (
|
s->foreach_regionview (bind (
|
||||||
mem_fun (*this, &EditorSummary::render_region),
|
mem_fun (*this, &EditorSummary::render_region),
|
||||||
|
|
@ -180,7 +179,6 @@ EditorSummary::render (cairo_t* cr)
|
||||||
start,
|
start,
|
||||||
y + h / 2
|
y + h / 2
|
||||||
));
|
));
|
||||||
++n;
|
|
||||||
y += h;
|
y += h;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue