mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 17:37:41 +01:00
[Summary] Made border line opacity (between tracks) equal to 20%
This commit is contained in:
parent
b4cc181be3
commit
b18b0266d8
1 changed files with 6 additions and 2 deletions
|
|
@ -73,8 +73,12 @@ StreamView::StreamView (RouteTimeAxisView& tv, ArdourCanvas::Container* canvas_g
|
|||
CANVAS_DEBUG_NAME (canvas_rect, string_compose ("SV canvas rectangle %1", _trackview.name()));
|
||||
canvas_rect->set (ArdourCanvas::Rect (0, 0, ArdourCanvas::COORD_MAX, tv.current_height ()));
|
||||
canvas_rect->set_outline_what (ArdourCanvas::Rectangle::BOTTOM);
|
||||
canvas_rect->set_outline_color (RGBA_TO_UINT (0, 0, 0, 255));
|
||||
canvas_rect->set_fill (true);
|
||||
|
||||
uint32_t opacity = 255*0.2; //20% opacity
|
||||
uint32_t outline_color_rgba = RGBA_TO_UINT (0, 0, 0, opacity);
|
||||
canvas_rect->set_outline_color (outline_color_rgba);
|
||||
|
||||
canvas_rect->set_fill (true);
|
||||
canvas_rect->Event.connect (sigc::bind (sigc::mem_fun (_trackview.editor(), &PublicEditor::canvas_stream_view_event), canvas_rect, &_trackview));
|
||||
|
||||
if (_trackview.is_track()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue