summaryrefslogtreecommitdiff
path: root/Counter.ui.qml
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-27 12:46:06 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2023-02-27 12:46:06 +0700
commitb405dd4b39faab9356cf23e70e333eec81479cb4 (patch)
treecd2cebf981874b36994bd6dd2952cc084d2174bc /Counter.ui.qml
parent527959acb8451808def49997873264a99b28ccab (diff)
parent36879d0b289bcd4276d1ebc0e3ab6a0d38e0f59a (diff)
Merge commit '36879d0b289bcd4276d1ebc0e3ab6a0d38e0f59a'
Diffstat (limited to 'Counter.ui.qml')
-rw-r--r--Counter.ui.qml47
1 files changed, 23 insertions, 24 deletions
diff --git a/Counter.ui.qml b/Counter.ui.qml
index e6e7318..f75b2ce 100644
--- a/Counter.ui.qml
+++ b/Counter.ui.qml
@@ -3,39 +3,39 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
Item {
- property alias area: area
-
Rectangle {
color: bgColor
radius: 8
anchors {
- top: parent.top
+ fill: parent
topMargin: 25.6
- left: parent.left
leftMargin: 12.8
- right: parent.right
rightMargin: 12.8
- bottom: parent.bottom
}
- RowLayout {
+ Item {
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
+ fill: parent
+ margins: 25.6
}
Image {
+ id: image
source: icon
- sourceSize.height: parent.height
+ 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
+ }
+
FontLoader {
id: bold
source: "Heebo/Heebo-Bold.ttf"
@@ -45,28 +45,27 @@ Item {
text: count
font {
family: bold.name
- pixelSize: 21
+ pointSize: 20.1
+ weight: Font.Bold
}
+ Layout.fillWidth: true
}
FontLoader {
id: medium
- source: "Heebo/Heebo-Bold.ttf"
+ source: "Heebo/Heebo-Medium.ttf"
}
Label {
text: title
font {
family: medium.name
- pixelSize: 15
+ pointSize: 15
+ weight: Font.Medium
}
+ Layout.fillWidth: true
}
}
}
-
- MouseArea {
- id: area
- anchors.fill: parent
- }
}
}