mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Make it obvious that this is a notification and not the actual message
This commit is contained in:
parent
0a3e647509
commit
95887c87db
1 changed files with 54 additions and 28 deletions
|
@ -4,16 +4,38 @@
|
||||||
|
|
||||||
import ".."
|
import ".."
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
import QtQuick.Controls 2.1
|
import QtQuick.Controls 2.15
|
||||||
|
import QtQuick.Layouts 1.15
|
||||||
import im.nheko 1.0
|
import im.nheko 1.0
|
||||||
|
|
||||||
Column {
|
Rectangle {
|
||||||
id: r
|
id: r
|
||||||
|
|
||||||
required property int encryptionError
|
required property int encryptionError
|
||||||
required property string eventId
|
required property string eventId
|
||||||
|
|
||||||
|
radius: height / 4
|
||||||
width: parent ? parent.width : undefined
|
width: parent ? parent.width : undefined
|
||||||
|
height: contents.implicitHeight + Nheko.paddingMedium * 2
|
||||||
|
color: Nheko.colors.alternateBase
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
id: contents
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: Nheko.paddingMedium
|
||||||
|
spacing: Nheko.paddingMedium
|
||||||
|
|
||||||
|
Image {
|
||||||
|
source: "image://colorimage/:/icons/icons/ui/shield-filled-cross.svg?" + Nheko.theme.error
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
width: 24
|
||||||
|
height: width
|
||||||
|
}
|
||||||
|
|
||||||
|
Column {
|
||||||
|
spacing: Nheko.paddingSmall
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
text: {
|
text: {
|
||||||
|
@ -35,7 +57,7 @@ Column {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
color: Nheko.colors.buttonText
|
color: Nheko.colors.buttonText
|
||||||
width: r ? r.width : undefined
|
width: parent ? parent.width : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
|
@ -45,4 +67,8 @@ Column {
|
||||||
onClicked: room.requestKeyForEvent(eventId)
|
onClicked: room.requestKeyForEvent(eventId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue