diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-13 20:41:27 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-13 20:41:27 +0800 |
| commit | 29b5bafe16ba82773da97c77951309d585bc9a6b (patch) | |
| tree | 57978d3e0196d57a8f31f515d6d93be5bfb21916 /Counter.ui.qml | |
| parent | 896960e9a507c671f685b0536a10d7dc554c9451 (diff) | |
Shorten names
Use something like
import "qeduport" as Eduport
Diffstat (limited to 'Counter.ui.qml')
| -rw-r--r-- | Counter.ui.qml | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/Counter.ui.qml b/Counter.ui.qml new file mode 100644 index 0000000..cc979d2 --- /dev/null +++ b/Counter.ui.qml @@ -0,0 +1,74 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import QtQuick.Layouts 1.15 + +Item { + property alias area: area + + 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 + } + + RowLayout { + anchors { + top: parent.top + topMargin: 25.6 + left: parent.left + leftMargin: 25.6 + right: parent.right + rightMargin: 25.6 + bottom: parent.bottom + bottomMargin: 25.6 + } + + Image { + source: icon + sourceSize.height: parent.height + } + + ColumnLayout { + FontLoader { + id: bold + name: "Heebo" + source: "Heebo/Heebo-Bold.ttf" + } + + Label { + text: count + font { + family: bold.name + pixelSize: 21 + } + } + + FontLoader { + id: medium + name: "Heebo" + source: "Heebo/Heebo-Bold.ttf" + } + + Label { + text: title + font { + family: medium.name + pixelSize: 15 + } + } + } + } + + MouseArea { + id: area + anchors.fill: parent + } + } +} |