mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 00:56:39 +00:00
feat: only show profile pics for contacts by default
But add a profile switch to show them for everyone
This commit is contained in:
parent
51083e2005
commit
7230cdf7c7
@ -90,6 +90,28 @@ Item {
|
|||||||
//% "Privacy"
|
//% "Privacy"
|
||||||
text: qsTrId("privacy")
|
text: qsTrId("privacy")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
spacing: Style.current.padding
|
||||||
|
width: parent.width
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
text: qsTr("Display all profile pictures (not only contacts)")
|
||||||
|
font.pixelSize: 15
|
||||||
|
font.weight: Font.Medium
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
StatusSwitch {
|
||||||
|
id: showOnlyContactsPicsSwitch
|
||||||
|
Layout.rightMargin: 0
|
||||||
|
checked: !appSettings.onlyShowContactsProfilePics
|
||||||
|
onCheckedChanged: function (value) {
|
||||||
|
appSettings.onlyShowContactsProfilePics = !this.checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: Style.current.padding
|
spacing: Style.current.padding
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -25,6 +25,13 @@ RowLayout {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (appSettings.onlyShowContactsProfilePics) {
|
||||||
|
const isContact = profileModel.contacts.list.rowData(index, "isContact")
|
||||||
|
if (isContact === "false") {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return profileModel.contacts.list.rowData(index, useLargeImage ? "largeImage" : "thumbnailImage")
|
return profileModel.contacts.list.rowData(index, useLargeImage ? "largeImage" : "thumbnailImage")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,6 +112,7 @@ ApplicationWindow {
|
|||||||
property bool neverAskAboutUnfurlingAgain: false
|
property bool neverAskAboutUnfurlingAgain: false
|
||||||
property bool hideChannelSuggestions: false
|
property bool hideChannelSuggestions: false
|
||||||
property bool hideSignPhraseModal: false
|
property bool hideSignPhraseModal: false
|
||||||
|
property bool onlyShowContactsProfilePics: true
|
||||||
|
|
||||||
property int fontSize: Constants.fontSizeM
|
property int fontSize: Constants.fontSizeM
|
||||||
|
|
||||||
@ -160,6 +161,7 @@ ApplicationWindow {
|
|||||||
property bool hideChannelSuggestions: defaultAppSettings.hideChannelSuggestions
|
property bool hideChannelSuggestions: defaultAppSettings.hideChannelSuggestions
|
||||||
property int fontSize: defaultAppSettings.fontSize
|
property int fontSize: defaultAppSettings.fontSize
|
||||||
property bool hideSignPhraseModal: defaultAppSettings.hideSignPhraseModal
|
property bool hideSignPhraseModal: defaultAppSettings.hideSignPhraseModal
|
||||||
|
property bool onlyShowContactsProfilePics: defaultAppSettings.onlyShowContactsProfilePics
|
||||||
|
|
||||||
// Browser settings
|
// Browser settings
|
||||||
property bool showBrowserSelector: defaultAppSettings.showBrowserSelector
|
property bool showBrowserSelector: defaultAppSettings.showBrowserSelector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user