From d90a165df8c8149e55c5c7fb566f634cd29e5693 Mon Sep 17 00:00:00 2001 From: 283375 Date: Wed, 8 Oct 2025 16:29:35 +0800 Subject: [PATCH] wip: replace Text with Label --- ui/qmls/AppMain.qml | 3 ++- ui/qmls/Overview.qml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/qmls/AppMain.qml b/ui/qmls/AppMain.qml index bad04b3..b836e54 100644 --- a/ui/qmls/AppMain.qml +++ b/ui/qmls/AppMain.qml @@ -1,4 +1,5 @@ import QtQuick +import QtQuick.Controls import QtQuick.Layouts RowLayout { @@ -42,7 +43,7 @@ RowLayout { } } - Text { + Label { anchors.margins: 5 anchors.fill: parent diff --git a/ui/qmls/Overview.qml b/ui/qmls/Overview.qml index b136cb1..12ae854 100644 --- a/ui/qmls/Overview.qml +++ b/ui/qmls/Overview.qml @@ -24,12 +24,12 @@ Page { // implicitHeight: valueText.implicitHeight - Text { + Label { text: parent.label Layout.alignment: Qt.AlignBaseline } - Text { + Label { id: valueText text: parent.value