From 9df94ecca05c8756d2db9aab79752ca78e4ebb16 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, 14 Nov 2022 19:34:01 +0800 Subject: Radius & margins for the counters --- DefaultHomeStackView.ui.qml | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/DefaultHomeStackView.ui.qml b/DefaultHomeStackView.ui.qml index 0bd3d1a..dcfd080 100644 --- a/DefaultHomeStackView.ui.qml +++ b/DefaultHomeStackView.ui.qml @@ -8,6 +8,7 @@ StackView { initialItem: Item { GridView { + id: counters model: ListModel { ListElement { count: "10K" @@ -27,23 +28,35 @@ StackView { } } - delegate: Rectangle { - color: bgColor - implicitWidth: label.width - implicitHeight: label.height + delegate: Item { + width: counters.cellWidth + height: 125.6 + Rectangle { + color: bgColor + radius: 8 + anchors { + top: parent.top + topMargin: 25.6 + left: parent.left + leftMargin: 12.8 + right: parent.right + rightMargin: 12.8 + bottom: parent.bottom + } - FontLoader { - id: heebo - name: "Heebo" - source: "Heebo/Heebo-Bold.ttf" - } + FontLoader { + id: heebo + name: "Heebo" + source: "Heebo/Heebo-Bold.ttf" + } - Label { - id: label - text: count - font { - family: heebo.name - pixelSize: 21 + Label { + id: label + text: count + font { + family: heebo.name + pixelSize: 21 + } } } } -- cgit v1.2.3