Warning, /network/neochat/src/qml/EncryptedDelegate.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2021 Tobias Fella <tobias.fella@kde.org>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 import QtQuick
0005 import QtQuick.Layouts
0006 
0007 import org.kde.kirigami as Kirigami
0008 import org.kde.neochat
0009 import org.kde.neochat.config
0010 
0011 /**
0012  * @brief A timeline delegate for an encrypted message that can't be decrypted.
0013  *
0014  * @inherit MessageDelegate
0015  */
0016 MessageDelegate {
0017     id: encryptedDelegate
0018 
0019     bubbleContent: TextEdit {
0020         text: i18n("This message is encrypted and the sender has not shared the key with this device.")
0021         color: Kirigami.Theme.disabledTextColor
0022         selectedTextColor: Kirigami.Theme.highlightedTextColor
0023         selectionColor: Kirigami.Theme.highlightColor
0024         font.pointSize: Kirigami.Theme.defaultFont.pointSize
0025         selectByMouse: !Kirigami.Settings.isMobile
0026         readOnly: true
0027         wrapMode: Text.WordWrap
0028         textFormat: Text.RichText
0029         Layout.leftMargin: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing : 0
0030     }
0031 }