Replace alpha value of gray star with lighter gray

It seems, on Linux qrgba does not work properly making
stars with alpha red when selected. So the patch returns
to just rgb without transparency but decreases the contrast
to white by a factor of 5.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-11-04 09:35:07 +01:00 committed by Dirk Hohndel
parent 0dd87989a8
commit b16cc78482

View file

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