diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 19:00:56 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-21 19:00:56 +0800 |
commit | 1eb056effa7f25b1e047697988a747325fcbd9e1 (patch) | |
tree | 8635d50ecbcda49c7cee2028351a3a2c0140d5df /Home/Default | |
parent | 567d36d435189d021847edfba247b081bc1e006e (diff) |
Reorganise default home files
Diffstat (limited to 'Home/Default')
-rw-r--r-- | Home/Default/Counter.ui.qml | 62 |
1 files changed, 62 insertions, 0 deletions
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 + } + } + } + } +} |