mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0dd87989a8
commit
b16cc78482
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue