frame_position = start;
item_duration = duration;
name_connected = false;
- fill_opacity = 60;
position_locked = false;
max_item_duration = ARDOUR::max_framepos;
min_item_duration = 0;
}
set_color (base_color);
+ set_opacity_for_drag (false);
set_duration (item_duration, this);
set_position (start, this);
TimeAxisViewItem::set_color (uint32_t base_color)
{
fill_color = base_color;
- fill_opacity = UINT_RGBA_A (fill_color);
set_colors ();
}
void
TimeAxisViewItem::set_colors()
{
+ /* we cannot be dragging this item when changing colors,
+ so reuse set_opacity_for_drag()
+ */
+ set_opacity_for_drag (false);
set_frame_color();
if (name_highlight) {
if (drag_starting) {
fill_opacity = 130;
} else {
- fill_opacity = UINT_RGBA_A (fill_color);
+ /* use the alpha/opacity value from the basic color, no matter whether
+ we use the color of our time axis or not.
+ */
+
+ uint32_t col = ARDOUR_UI::config()->get_canvasvar_FrameBase();
+ fill_opacity = UINT_RGBA_A (col);
}
set_frame_color ();
}