summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2018-11-02 15:48:09 +0200
committerKari Oikarinen <kari.oikarinen@qt.io>2019-02-04 11:44:12 +0000
commit1a9567ff314fd737b52bffb3195d64b600252c59 (patch)
tree0a8691aad772bc95cead14f2bc3b32984fcca038
parent11671d67a0e43e4cda6b206d3a27347d2bc4dab7 (diff)
Shorten the light background gradient in grid layout
The design specification does not specify end points for the gradient, but from the mockups it is clear that it is not supposed to cover the entire picture. That leads to the white gradient "washing out" the preview pictures. Task-number: QTBUG-70548 Change-Id: I0867e4620d8f15e77f859362ad92fe9d454cc19b Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io> Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
-rw-r--r--src/imageproviders.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imageproviders.cpp b/src/imageproviders.cpp
index f91f24e..cbf019e 100644
--- a/src/imageproviders.cpp
+++ b/src/imageproviders.cpp
@@ -123,7 +123,7 @@ QPixmap QtSquareImageProvider::requestPixmap(const QString &id, QSize *size, con
QRect r = image.rect();
QLinearGradient gradient(r.topLeft(), r.bottomLeft());
gradient.setColorAt(0, QColor("#99FFFFFF"));
- gradient.setColorAt(1, Qt::transparent);
+ gradient.setColorAt(0.25, Qt::transparent);
p.fillRect(r, gradient);
}