From 52db848918064c2b78f029d3cea97bb9ee02b75a Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 20 Jun 2022 10:26:16 -0700 Subject: [PATCH] ui: draw in/out semi translucent Fixes #1957 --- app/widget/timeruler/seekablewidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/widget/timeruler/seekablewidget.cpp b/app/widget/timeruler/seekablewidget.cpp index 141a28b70..68f255bc7 100644 --- a/app/widget/timeruler/seekablewidget.cpp +++ b/app/widget/timeruler/seekablewidget.cpp @@ -331,7 +331,9 @@ void SeekableWidget::DrawTimelinePoints(QPainter* p, int marker_bottom) workarea_right = qMin(qreal(lim_right), TimeToScene(GetTimelinePoints()->workarea()->out())); } - p->fillRect(workarea_left, 0, workarea_right - workarea_left, height(), palette().highlight()); + QColor translucent_highlight = palette().highlight().color(); + translucent_highlight.setAlpha(96); + p->fillRect(workarea_left, 0, workarea_right - workarea_left, height(), translucent_highlight); } // Draw markers