status-desktop/ui/app/AppLayouts/Profile/Sections/PrivacyContainer.qml

115 lines
3.1 KiB
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import QtGraphicalEffects 1.13
2020-05-27 21:28:25 +00:00
import "../../../../imports"
import "../../../../shared"
2020-05-27 21:28:25 +00:00
Item {
id: privacyContainer
Layout.fillHeight: true
Layout.fillWidth: true
Item {
id: profileImgNameContainer
2020-05-27 21:28:25 +00:00
anchors.top: parent.top
anchors.topMargin: 46
anchors.right: parent.right
anchors.rightMargin: contentMargin
anchors.left: parent.left
anchors.leftMargin: contentMargin
anchors.bottom: parent.bottom
StyledText {
id: labelSecurity
//% "Security"
text: qsTrId("security")
font.pixelSize: 15
color: Style.current.darkGrey
}
Item {
id: backupSeedPhrase
anchors.top: labelSecurity.bottom
anchors.topMargin: Style.current.padding
height: backupText.height
width: parent.width
StyledText {
id: backupText
//% "Backup Seed Phrase"
text: qsTrId("backup-seed-phrase")
font.pixelSize: 15
}
SVGImage {
id: caret
anchors.right: parent.right
anchors.rightMargin: 0
anchors.verticalCenter: backupText.verticalCenter
source: "../../../img/caret.svg"
width: 13
height: 7
rotation: -90
}
ColorOverlay {
anchors.fill: caret
source: caret
color: Style.current.darkGrey
rotation: -90
}
MouseArea {
anchors.fill: parent
onClicked: backupSeedModal.open()
cursorShape: Qt.PointingHandCursor
}
}
BackupSeedModal {
id: backupSeedModal
}
Separator {
id: separator
anchors.top: backupSeedPhrase.bottom
anchors.topMargin: Style.current.bigPadding
}
StyledText {
id: labelPrivacy
2020-08-26 15:52:26 +00:00
//% "Privacy"
text: qsTrId("privacy")
font.pixelSize: 15
color: Style.current.darkGrey
anchors.top: separator.bottom
anchors.topMargin: Style.current.smallPadding
}
RowLayout {
id: displayImageSettings
anchors.top: labelPrivacy.bottom
anchors.topMargin: Style.current.padding
StyledText {
//% "Display images in chat automatically"
text: qsTrId("display-images-in-chat-automatically")
}
Switch {
checked: appSettings.displayChatImages
onCheckedChanged: function (value) {
appSettings.displayChatImages = this.checked
}
}
StyledText {
//% "under development"
text: qsTrId("under-development")
}
}
}
2020-05-27 21:28:25 +00:00
}
/*##^##
Designer {
D{i:0;autoSize:true;formeditorColor:"#ffffff";height:480;width:640}
}
##^##*/