From 815c26850266eba2e4e5d02509487452624b1c64 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Tue, 31 Aug 2021 21:59:35 +0200 Subject: [ui] fonts + bugfixing --- gui/components/ErrorBox.qml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 gui/components/ErrorBox.qml (limited to 'gui/components/ErrorBox.qml') diff --git a/gui/components/ErrorBox.qml b/gui/components/ErrorBox.qml new file mode 100644 index 0000000..40c12d0 --- /dev/null +++ b/gui/components/ErrorBox.qml @@ -0,0 +1,33 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.2 +import QtGraphicalEffects 1.0 +import "../themes/themes.js" as Theme + +Item { + id: errorBox + width: parent.width + property var errorText: "" + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: connectionImage.bottom + + // TODO alert icon, by type + + Rectangle { + + id: labelWrapper + color: "transparent" + height: label.paintedHeight + Theme.windowMargin + width: parent.width + anchors.verticalCenter: parent.verticalCenter + + Label { + id: label + width: labelWrapper.width - Theme.windowMargin + anchors.centerIn: parent + text: errorBox.errorText //+ " " + "" + alertLinkText + "" + horizontalAlignment: Text.AlignHCenter + wrapMode: Text.Wrap + font.pixelSize: Theme.fontSizeSmall + } + } +} -- cgit v1.2.3