From 1cb729b0988a4b50e7aa822c3e60e03624acb113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 26 Sep 2022 22:44:11 +0800 Subject: Put the shadow behind the rectangle by putting the code before, so that the rectangle doesn't look blurry. --- GridCard.ui.qml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'GridCard.ui.qml') diff --git a/GridCard.ui.qml b/GridCard.ui.qml index d000680..64b1dc8 100644 --- a/GridCard.ui.qml +++ b/GridCard.ui.qml @@ -8,6 +8,12 @@ Item { property string titleText: "Sketch from A to Z: for app designer" // property string textTruncateText: "Rooms oh fully taken by worse do. Points afraid but may end afraid but.." + DropShadow { + source: rectangle + color: Qt.rgba(.113, .227, .325, .15) + anchors.fill: rectangle + } + Rectangle { id: rectangle radius: 10 @@ -135,15 +141,6 @@ Item { } } - DropShadow { - verticalOffset: 2 - radius: 2 - samples: 4 - source: rectangle - color: Qt.rgba(.113, .227, .325, .15) - anchors.fill: rectangle - } - width: 323.9 height: 446.583 } -- cgit v1.2.3