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/InitErrors.qml | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 gui/components/InitErrors.qml (limited to 'gui/components/InitErrors.qml') diff --git a/gui/components/InitErrors.qml b/gui/components/InitErrors.qml new file mode 100644 index 0000000..2859168 --- /dev/null +++ b/gui/components/InitErrors.qml @@ -0,0 +1,49 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.2 +import QtGraphicalEffects 1.0 + +ErrorBox { + + state: "noerror" + + states: [ + State { + name: "noerror" + when: root.error == "" + PropertyChanges { + target: splashSpinner + visible: true + } + PropertyChanges { + target: splashErrorBox + visible: false + } + }, + State { + name: "nohelpers" + when: root.error == "nohelpers" + PropertyChanges { + target: splashSpinner + visible: false + } + PropertyChanges { + target: splashErrorBox + errorText: qsTr("Could not find helpers. Please check your installation") + visible: true + } + }, + State { + name: "nopolkit" + when: root.error == "nopolkit" + PropertyChanges { + target: splashSpinner + visible: false + } + PropertyChanges { + target: splashErrorBox + errorText: qsTr("Could not find polkit agent.") + visible: true + } + } + ] +} -- cgit v1.2.3