summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 22:27:13 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 22:27:13 +0800
commit7ab94bb053cf1081821583e7fab57529f64d6991 (patch)
tree5c0a6affbf11ed9e90f3833e85b29246023c77d6
parent6fe0294e692c4626336731276dc28926a1302b32 (diff)
Round the card image corners
but haven't found a way to not round the bottom edges
-rw-r--r--GridCard.ui.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/GridCard.ui.qml b/GridCard.ui.qml
index 2dde55e..d000680 100644
--- a/GridCard.ui.qml
+++ b/GridCard.ui.qml
@@ -29,6 +29,14 @@ Item {
height: parent.width * 3 / 4
}
anchors.top: parent.top
+ layer.enabled: true
+ layer.effect: OpacityMask {
+ maskSource: Rectangle {
+ width: image.width
+ height: image.height
+ radius: 10
+ }
+ }
}
Item {