timeline: use different shadow color if block is disabled

This commit is contained in:
itsmattkc
2022-09-25 16:36:12 -07:00
parent c34416a478
commit 00526fe954
@@ -476,7 +476,7 @@ void TimelineView::DrawBlock(QPainter *painter, bool foreground, Block *block, q
block_right - block_left,
block_height);
QColor shadow_color = block->color().toQColor().darker();
QColor shadow_color = block->is_enabled() ? block->color().toQColor().darker() : QColor(Qt::darkGray).darker();
if (r.width() <= 3) {
painter->fillRect(r, shadow_color);