summaryrefslogtreecommitdiff
path: root/Home/Default/Counter.ui.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Home/Default/Counter.ui.qml')
-rw-r--r--Home/Default/Counter.ui.qml62
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
+ }
+ }
+ }
+ }
+}