When using Breeze light: | Before | After | | ------ | ------ | |  |  |
28 lines
961 B
QML
28 lines
961 B
QML
// SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import org.kde.kirigami 2.15 as Kirigami
|
|
import org.kde.neochat 1.0
|
|
|
|
TimelineContainer {
|
|
id: encryptedDelegate
|
|
|
|
innerObject: TextEdit {
|
|
text: i18n("This message is encrypted and the sender has not shared the key with this device.")
|
|
color: Kirigami.Theme.disabledTextColor
|
|
selectedTextColor: Kirigami.Theme.highlightedTextColor
|
|
selectionColor: Kirigami.Theme.highlightColor
|
|
font.pointSize: Kirigami.Theme.defaultFont.pointSize
|
|
selectByMouse: !Kirigami.Settings.isMobile
|
|
readOnly: true
|
|
wrapMode: Text.WordWrap
|
|
textFormat: Text.RichText
|
|
Layout.maximumWidth: encryptedDelegate.contentMaxWidth
|
|
Layout.leftMargin: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing : 0
|
|
}
|
|
}
|