diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-26 22:44:11 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-26 22:44:11 +0800 |
commit | 1cb729b0988a4b50e7aa822c3e60e03624acb113 (patch) | |
tree | 7435d486fe7fc7441a31e47b66c3d245502b24d0 | |
parent | 7ab94bb053cf1081821583e7fab57529f64d6991 (diff) |
Put the shadow behind the rectangle
by putting the code before, so that the rectangle doesn't look blurry.
-rw-r--r-- | GridCard.ui.qml | 15 |
1 files changed, 6 insertions, 9 deletions
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 } |