fix: fix privacy setting page design and spacings

This commit is contained in:
Jonathan Rainville 2021-01-21 13:29:07 -05:00 committed by Iuri Matias
parent 13dc160d11
commit 682d5dcd21
1 changed files with 28 additions and 47 deletions

View File

@ -13,7 +13,6 @@ Item {
Column { Column {
id: containerColumn id: containerColumn
spacing: 30
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: topMargin anchors.topMargin: topMargin
anchors.right: parent.right anchors.right: parent.right
@ -26,6 +25,7 @@ Item {
id: labelSecurity id: labelSecurity
//% "Security" //% "Security"
text: qsTrId("security") text: qsTrId("security")
bottomPadding: 4
} }
StatusSettingsLineButton { StatusSettingsLineButton {
@ -43,6 +43,12 @@ Item {
id: backupSeedModal id: backupSeedModal
} }
Item {
id: spacer1
height: Style.current.bigPadding
width: parent.width
}
Separator { Separator {
id: separator id: separator
} }
@ -51,39 +57,23 @@ Item {
id: labelPrivacy id: labelPrivacy
//% "Privacy" //% "Privacy"
text: qsTrId("privacy") text: qsTrId("privacy")
topPadding: Style.current.padding
bottomPadding: 4
} }
RowLayout { StatusSettingsLineButton {
spacing: Style.current.padding
width: parent.width
StyledText {
text: qsTr("Display all profile pictures (not only contacts)") text: qsTr("Display all profile pictures (not only contacts)")
font.pixelSize: 15 isSwitch: true
font.weight: Font.Medium switchChecked: !appSettings.onlyShowContactsProfilePics
Layout.fillWidth: true onClicked: appSettings.onlyShowContactsProfilePics = !checked
} }
StatusSwitch { StatusSettingsLineButton {
id: showOnlyContactsPicsSwitch
Layout.rightMargin: 0
checked: !appSettings.onlyShowContactsProfilePics
onCheckedChanged: function (value) {
appSettings.onlyShowContactsProfilePics = !this.checked
}
}
}
RowLayout {
spacing: Style.current.padding
width: parent.width
Column {
Layout.fillWidth: true
StyledText {
//% "Display images in chat automatically" //% "Display images in chat automatically"
text: qsTrId("display-images-in-chat-automatically") text: qsTrId("display-images-in-chat-automatically")
font.pixelSize: 15 isSwitch: true
font.weight: Font.Medium switchChecked: appSettings.displayChatImages
onClicked: appSettings.displayChatImages = checked
} }
StyledText { StyledText {
width: parent.width width: parent.width
@ -92,16 +82,7 @@ Item {
font.weight: Font.Thin font.weight: Font.Thin
color: Style.current.secondaryText color: Style.current.secondaryText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} bottomPadding: Style.current.smallPadding
}
StatusSwitch {
id: displayChatImagesSwitch
Layout.rightMargin: 0
checked: appSettings.displayChatImages
onCheckedChanged: function (value) {
appSettings.displayChatImages = this.checked
}
}
} }
StatusSettingsLineButton { StatusSettingsLineButton {