From 81a28f53981a05bfd04f01aa4e1725c6e567d04c 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 17:14:19 +0800 Subject: Give card shadow & radius --- Card.ui.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Card.ui.qml') 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 } -- cgit v1.2.3