/* * Komplex Wallpaper Engine * Copyright (C) 2026 @DigitalArtifex * https://digitalartifex.dev - https://github.com/DigitalArtifex * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see */ import QtQuick import QtQuick.Controls import QtQuick.Layouts import KomplexHub Item { property string title: qsTr("Error") property string description: qsTr("A description of the error") property color color: palette.window id: errorOverlayRoot Rectangle { id: errorOverlayBackground anchors.fill: parent color: errorOverlayRoot.color ColumnLayout { anchors.fill: parent Rectangle { Layout.fillHeight: true Layout.fillWidth: true Layout.minimumWidth: 64 Layout.minimumHeight: 64 Layout.maximumWidth: 512 Layout.maximumHeight: 512 Layout.alignment: Qt.AlignCenter color: "transparent" Image { anchors.fill: parent source: "qrc:/images/kero/kero_error.png" antialiasing: true fillMode: Image.PreserveAspectFit } ColumnLayout { anchors.bottom: parent.bottom anchors.left: parent.left anchors.right: parent.right Text { color: palette.text text: errorOverlayRoot.title font: Constants.h1Font Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom } Text { id: errorText text: errorOverlayRoot.description color: palette.text.darker() Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom Layout.bottomMargin: Constants.largeMargin } } } } } }