Make invisible stars stand out less

As my wife kept pointing out for a long time, the greyed out stars
were heavier as images than the yellow selected stars. This patch
makes the grey stars semi-transparent.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Acked-by: Andrea Fischer-Helling <andrea@fraufischer.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-11-01 21:13:49 +01:00 committed by Dirk Hohndel
parent c65583671b
commit 7f7e25d586

View file

@ -109,7 +109,7 @@ QImage grayImage(const QImage& coloredImg)
QColor c(rgb);
int gray = (c.red() + c.green() + c.blue()) / 3;
img.setPixel(i, j, qRgb(gray, gray, gray));
img.setPixel(i, j, qRgba(gray, gray, gray, 60));
}
}