// An inline warning strip for the two states where the app cannot do its job: // the backend is unreachable, or the privileged helper is missing. import QtQuick import QtQuick.Controls import QtQuick.Layouts import ".." Rectangle { id: banner property string text: "" property string actionText: "" signal actionClicked() Layout.fillWidth: true implicitHeight: visible ? row.implicitHeight + 20 : 0 radius: Theme.radius color: Qt.alpha(Theme.clay, 0.12) border.width: 1 border.color: Qt.alpha(Theme.clay, 0.4) RowLayout { id: row anchors.fill: parent anchors.margins: 12 spacing: 12 Label { text: banner.text color: Theme.ink font.pixelSize: 12 font.family: Theme.sansFamily wrapMode: Text.WordWrap Layout.fillWidth: true } Button { visible: banner.actionText !== "" text: banner.actionText flat: true onClicked: banner.actionClicked() } } }