From c5fc997d140ad3d1ae26228a8cbbd457be75456b 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 10:30:43 +0800 Subject: Group groupable attributes --- CardItem.ui.qml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/CardItem.ui.qml b/CardItem.ui.qml index 3464686..8f19fc2 100644 --- a/CardItem.ui.qml +++ b/CardItem.ui.qml @@ -12,15 +12,19 @@ Rectangle { Image { id: image source: "darapsa.svg" - sourceSize.width: parent.width - sourceSize.height: 225 + sourceSize { + width: parent.width + height: 225 + } } Item { id: body width: parent.width - anchors.top: image.bottom - anchors.bottom: parent.bottom + anchors { + top: image.bottom + bottom: parent.bottom + } Item { id: badgeAndFavorite @@ -47,8 +51,10 @@ Rectangle { Image { id: favorite source: "Font-Awesome/svgs/solid/heart.svg" - sourceSize.width: 16 - sourceSize.height: 16 + sourceSize { + width: 16 + height: 16 + } anchors { right: parent.right rightMargin: 8 @@ -68,8 +74,10 @@ Rectangle { right: parent.right rightMargin: 16 } - font.weight: Font.Medium - font.pointSize: 20 + font { + weight: Font.Medium + pointSize: 20 + } } Label { -- cgit v1.2.3