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.
53 lines
1.1 KiB
53 lines
1.1 KiB
3 years ago
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
||
|
//
|
||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
import QtQuick 2.15
|
||
|
import QtQuick.Controls 2.15
|
||
|
import im.nheko 1.0
|
||
|
|
||
|
ApplicationWindow {
|
||
|
id: rawMessageRoot
|
||
|
|
||
|
property alias rawMessage: rawMessageView.text
|
||
|
|
||
|
height: 420
|
||
|
width: 420
|
||
|
palette: Nheko.colors
|
||
|
color: Nheko.colors.window
|
||
3 years ago
|
flags: Qt.Tool | Qt.WindowStaysOnTopHint | Qt.WindowCloseButtonHint | Qt.WindowTitleHint
|
||
3 years ago
|
Component.onCompleted: Nheko.reparent(rawMessageRoot)
|
||
3 years ago
|
|
||
|
Shortcut {
|
||
|
sequence: StandardKey.Cancel
|
||
|
onActivated: rawMessageRoot.close()
|
||
|
}
|
||
|
|
||
|
ScrollView {
|
||
3 years ago
|
anchors.margins: Nheko.paddingMedium
|
||
3 years ago
|
anchors.fill: parent
|
||
|
palette: Nheko.colors
|
||
|
padding: Nheko.paddingMedium
|
||
|
|
||
|
TextArea {
|
||
|
id: rawMessageView
|
||
|
|
||
|
font: Nheko.monospaceFont()
|
||
3 years ago
|
color: Nheko.colors.text
|
||
3 years ago
|
readOnly: true
|
||
3 years ago
|
|
||
|
background: Rectangle {
|
||
|
color: Nheko.colors.base
|
||
|
}
|
||
3 years ago
|
|
||
3 years ago
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
footer: DialogButtonBox {
|
||
|
standardButtons: DialogButtonBox.Ok
|
||
|
onAccepted: rawMessageRoot.close()
|
||
|
}
|
||
3 years ago
|
|
||
3 years ago
|
}
|