summaryrefslogtreecommitdiffstats
path: root/qt-ui/starwidget.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-11-01 21:13:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-03 15:00:28 -0800
commit7f7e25d586d91782763eb3f08a3e6d81440fc9c5 (patch)
treeabffc295aaad16b78903a62cfc65d3294c9f58f8 /qt-ui/starwidget.cpp
parentc65583671b86cdba93b31ea9ad29307179af703b (diff)
downloadsubsurface-7f7e25d586d91782763eb3f08a3e6d81440fc9c5.tar.gz
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>
Diffstat (limited to 'qt-ui/starwidget.cpp')
-rw-r--r--qt-ui/starwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/starwidget.cpp b/qt-ui/starwidget.cpp
index a56ba0b28..51281ab28 100644
--- a/qt-ui/starwidget.cpp
+++ b/qt-ui/starwidget.cpp
@@ -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));
}
}