From b16cc784824aca3bc8f4ca3af4d773ad7bee6098 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 4 Nov 2014 09:35:07 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/starwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/starwidget.cpp b/qt-ui/starwidget.cpp index 51281ab28..005396761 100644 --- a/qt-ui/starwidget.cpp +++ b/qt-ui/starwidget.cpp @@ -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)); } } -- cgit v1.2.3-70-g09d2