summaryrefslogtreecommitdiff
path: root/Card.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 17:14:19 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 17:14:19 +0800
commit81a28f53981a05bfd04f01aa4e1725c6e567d04c (patch)
tree4d50b99b06bb845d14bcae8973980956089663d5 /Card.ui.qml
parenta1bf3a7aa5ddec7a1ddca53e8a70f0b5d9830779 (diff)
Give card shadow & radius
Diffstat (limited to 'Card.ui.qml')
-rw-r--r--Card.ui.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/Card.ui.qml b/Card.ui.qml
index dd91e00..f5ddb90 100644
--- a/Card.ui.qml
+++ b/Card.ui.qml
@@ -1,5 +1,6 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
+import QtGraphicalEffects 1.15
Item {
property string imageSource: "Darapsa.svg"
@@ -8,6 +9,8 @@ Item {
property string textTruncateText: "Rooms oh fully taken by worse do. Points afraid but may end afraid but.."
Rectangle {
+ id: rectangle
+ radius: 10
anchors {
top: parent.top
topMargin: 51.2
@@ -111,6 +114,12 @@ Item {
}
}
+ DropShadow {
+ source: rectangle
+ color: Qt.rgba(.113, .227, .325, .15)
+ anchors.fill: rectangle
+ }
+
width: 300
height: 480
}