diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-26 10:30:43 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-26 10:30:43 +0800 |
commit | c5fc997d140ad3d1ae26228a8cbbd457be75456b (patch) | |
tree | 1d7dfe9613a0ec57eebcd1c608f288b178aeb28a | |
parent | 52cb4448bc116496b69349d8e78640173eec40ef (diff) |
Group groupable attributes
-rw-r--r-- | CardItem.ui.qml | 24 |
1 files 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 { |