UI/Qt: Paint the dragged tab preview with some transparency

Makes it a bit easier to see where the tab is being dragged to.
This commit is contained in:
Timothy Flynn 2026-05-29 08:09:41 -04:00 committed by Tim Flynn
parent af410da20c
commit 42c9fcf88f

View file

@ -400,6 +400,7 @@ QPixmap TabBar::render_tab_drag_pixmap(int index) const
pixmap.fill(Qt::transparent);
QPainter painter(&pixmap);
painter.setOpacity(0.75);
const_cast<TabBar&>(*this).render(&painter, QPoint(), QRegion(tab_rect), QWidget::DrawChildren);
return pixmap;
}