From 2984d71971fb49e47ff1485ad918e9d520404e4b Mon Sep 17 00:00:00 2001 From: trilene Date: Wed, 30 Dec 2020 15:03:07 -0500 Subject: Fix Qml control colors --- resources/qml/voip/DeviceError.qml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 resources/qml/voip/DeviceError.qml (limited to 'resources/qml/voip/DeviceError.qml') diff --git a/resources/qml/voip/DeviceError.qml b/resources/qml/voip/DeviceError.qml new file mode 100644 index 00000000..c88c7faa --- /dev/null +++ b/resources/qml/voip/DeviceError.qml @@ -0,0 +1,31 @@ +import QtQuick 2.9 +import QtQuick.Controls 2.3 +import QtQuick.Layouts 1.2 +import im.nheko 1.0 + +Popup { + + property string errorString + property var iconSource + + modal: true + anchors.centerIn: parent + background: Rectangle { + color: colors.window + border.color: colors.windowText + } + + RowLayout { + + Image { + Layout.preferredWidth: 16 + Layout.preferredHeight: 16 + source: iconSource + } + + Label { + text: errorString + color: colors.windowText + } + } +} -- cgit 1.5.1