mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
// SPDX-FileCopyrightText: Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import im.nheko
|
|
|
|
ApplicationWindow {
|
|
id: rawMessageRoot
|
|
|
|
property alias rawMessage: rawMessageView.text
|
|
|
|
height: 420
|
|
width: 420
|
|
color: palette.window
|
|
flags: Qt.Tool | Qt.WindowStaysOnTopHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint
|
|
|
|
Shortcut {
|
|
sequence: StandardKey.Cancel
|
|
onActivated: rawMessageRoot.close()
|
|
}
|
|
|
|
ScrollView {
|
|
anchors.margins: Nheko.paddingMedium
|
|
anchors.fill: parent
|
|
padding: Nheko.paddingMedium
|
|
|
|
TextArea {
|
|
id: rawMessageView
|
|
|
|
font: Nheko.monospaceFont()
|
|
color: palette.text
|
|
readOnly: true
|
|
textFormat: Text.PlainText
|
|
|
|
anchors.fill: parent
|
|
|
|
background: Rectangle {
|
|
color: palette.base
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
footer: DialogButtonBox {
|
|
standardButtons: DialogButtonBox.Ok
|
|
onAccepted: rawMessageRoot.close()
|
|
}
|
|
|
|
}
|
|
|