From 25cc436a7de28683df775be1a78bb45aa0b0539c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 16 Oct 2024 15:06:12 +0100 Subject: [PATCH] qml: use label --- qml/main.qml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index f7eea40..fb6cd6a 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -40,7 +40,7 @@ ApplicationWindow { anchors.fill: parent anchors.margins: 4 - Text { + Label { color: Qt.darker(system.windowText, 0.8) font.bold: true font.pointSize: Math.round(fontMetrics.height * 1.05) @@ -53,8 +53,7 @@ ApplicationWindow { Layout.bottomMargin: fontMetrics.height / 2 } - Text { - color: system.windowText + Label { text: hpa.getMessage() } @@ -85,7 +84,7 @@ ApplicationWindow { } - Text { + Label { id: errorLabel color: "red"