From 1eb056effa7f25b1e047697988a747325fcbd9e1 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: Tue, 21 Mar 2023 19:00:56 +0800 Subject: Reorganise default home files --- Home/Default/Counter.ui.qml | 62 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Home/Default/Counter.ui.qml (limited to 'Home/Default') diff --git a/Home/Default/Counter.ui.qml b/Home/Default/Counter.ui.qml new file mode 100644 index 0000000..293b9ef --- /dev/null +++ b/Home/Default/Counter.ui.qml @@ -0,0 +1,62 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 +import Eduport 1.0 + +Item { + Rectangle { + color: bgColor + radius: 8 + anchors { + fill: parent + topMargin: 25.6 + leftMargin: 12.8 + rightMargin: 12.8 + } + + Item { + anchors { + fill: parent + margins: 25.6 + } + + Image { + id: image + source: icon + sourceSize.height: column.height * 3 / 4 + fillMode: Image.PreserveAspectFit + x: (parent.width - (width + column.width + 25.6)) / 2 + anchors.verticalCenter: parent.verticalCenter + } + + ColumnLayout { + id: column + spacing: 0 + anchors { + left: image.right + leftMargin: 25.6 + } + + Label { + text: count + font { + family: Eduport.hFont.family + pointSize: 20.1 + + .00075 * parent.width + } + Layout.fillWidth: true + } + + Label { + text: title + font { + family: Eduport.normalFont + .family + pointSize: h6FontSize + } + Layout.fillWidth: true + } + } + } + } +} -- cgit v1.2.3