Adjust brush gradient fill factor

master
Jeremy Hu 2019-08-18 14:51:10 +09:30
parent 3701002fac
commit 0077986201
1 changed files with 2 additions and 2 deletions

View File

@ -133,10 +133,10 @@ void MousePicker::paintToImage(const QUuid &partId, float x, float y, float radi
{
QRadialGradient gradient(destX, destY, destRadius / 2);
if (inverted) {
gradient.setColorAt(0, QColor(0, 0, 0, 3));
gradient.setColorAt(0, QColor(0, 0, 0, 2));
gradient.setColorAt(1, Qt::transparent);
} else {
gradient.setColorAt(0, QColor(255, 255, 255, 3));
gradient.setColorAt(0, QColor(255, 255, 255, 2));
gradient.setColorAt(1, Qt::transparent);
}
QBrush brush(gradient);