2023-02-22 01:48:49 +03:00
// SPDX-FileCopyrightText: Nheko Contributors
2023-02-12 05:40:07 +03:00
//
// SPDX-License-Identifier: GPL-3.0-or-later
import ".."
import QtQuick 2.15
import QtQuick . Layouts 1.15
import im . nheko 1.0
Rectangle {
id: r
required property string username
radius: fontMetrics . lineSpacing / 2 + Nheko . paddingMedium
2023-02-13 17:40:24 +03:00
width: parent . width ? Math . min ( parent . width , 700 ) : 0
2023-02-12 05:40:07 +03:00
height: contents . implicitHeight + Nheko . paddingMedium * 2
2023-06-02 02:29:05 +03:00
color: palette . alternateBase
2023-02-12 05:40:07 +03:00
border.color: Nheko . theme . green
border.width: 2
RowLayout {
id: contents
anchors.fill: parent
anchors.margins: Nheko . paddingMedium
spacing: Nheko . paddingMedium
Image {
source: "image://colorimage/:/icons/icons/ui/shield-filled-checkmark.svg?" + Nheko . theme . green
Layout.alignment: Qt . AlignVCenter
2023-06-19 21:45:57 +03:00
Layout.preferredWidth: 24
Layout.preferredHeight: 24
2023-02-12 05:40:07 +03:00
}
Column {
spacing: Nheko . paddingSmall
Layout.fillWidth: true
MatrixText {
text: qsTr ( "%1 enabled end-to-end encryption" ) . arg ( r . username )
font.bold: true
font.pointSize: 14
2023-06-02 02:29:05 +03:00
color: palette . text
2023-02-12 05:40:07 +03:00
width: parent . width
}
MatrixText {
2023-02-14 20:44:26 +03:00
text: qsTr ( "Encryption keeps your messages safe by only allowing the people you sent the message to to read it. For extra security, if you want to make sure you are talking to the right people, you can verify them in real life." )
2023-06-02 02:29:05 +03:00
color: palette . text
2023-02-12 05:40:07 +03:00
width: parent . width
}
}
}
}