2021-09-02 04:15:07 +03:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
2022-01-01 06:57:53 +03:00
|
|
|
// SPDX-FileCopyrightText: 2022 Nheko Contributors
|
2021-09-02 04:15:07 +03:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.2
|
2022-04-15 03:58:44 +03:00
|
|
|
import im.nheko
|
2021-09-02 04:15:07 +03:00
|
|
|
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
2022-04-16 03:13:01 +03:00
|
|
|
height: implicitHeight
|
|
|
|
implicitHeight: warningRect.visible ? warningDisplay.implicitHeight : 0
|
2021-09-02 04:15:07 +03:00
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: warningRect
|
|
|
|
anchors.fill: parent
|
2022-04-16 03:13:01 +03:00
|
|
|
color: timelineRoot.palette.base
|
|
|
|
visible: (room && room.permissions.canPingRoom() && room.input.containsAtRoom)
|
2021-09-02 04:15:07 +03:00
|
|
|
z: 3
|
|
|
|
|
|
|
|
Label {
|
|
|
|
id: warningDisplay
|
2022-04-16 03:13:01 +03:00
|
|
|
anchors.bottom: parent.bottom
|
2021-09-02 04:15:07 +03:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 10
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 10
|
|
|
|
color: Nheko.theme.red
|
2021-10-01 04:24:28 +03:00
|
|
|
text: qsTr("You are about to notify the whole room")
|
2021-09-02 04:15:07 +03:00
|
|
|
textFormat: Text.PlainText
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|