mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
c65583671b
commit
7f7e25d586
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue