summary refs log tree commit diff
path: root/resources/qml/voip/DeviceError.qml
blob: 81872ef7aab865457f5550ee9ef3026ee7127d01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 image

    modal: true
    anchors.centerIn: parent

    RowLayout {
        Image {
            Layout.preferredWidth: 16
            Layout.preferredHeight: 16
            source: "image://colorimage/" + image + "?" + colors.windowText
        }

        Label {
            text: errorString
            color: colors.windowText
        }

    }

    background: Rectangle {
        color: colors.window
        border.color: colors.windowText
    }

}