mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 05:52:41 +00:00
parent
a862c0672b
commit
781575c4b5
@ -121,7 +121,7 @@ StatusModal {
|
|||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
title: model.name
|
title: model.name
|
||||||
subTitle: model.description
|
subTitle: model.description
|
||||||
tertiaryTitle: qsTr("%1 members").arg(model.members.count)
|
tertiaryTitle: qsTr("%n member(s)", "", model.members.count)
|
||||||
statusListItemTitle.font.weight: Font.Bold
|
statusListItemTitle.font.weight: Font.Bold
|
||||||
statusListItemTitle.font.pixelSize: 17
|
statusListItemTitle.font.pixelSize: 17
|
||||||
asset.name: model.image
|
asset.name: model.image
|
||||||
|
@ -27,9 +27,10 @@ StatusListView {
|
|||||||
id: statusCommunityItem
|
id: statusCommunityItem
|
||||||
width: parent.width
|
width: parent.width
|
||||||
title: model.name
|
title: model.name
|
||||||
|
statusListItemTitle.font.pixelSize: 17
|
||||||
|
statusListItemTitle.font.bold: true
|
||||||
subTitle: model.description
|
subTitle: model.description
|
||||||
tertiaryTitle: qsTr(model.members.count === 1 ?"%1 member"
|
tertiaryTitle: qsTr("%n member(s)", "", model.members.count)
|
||||||
:"%1 members").arg(model.members.count)
|
|
||||||
asset.name: model.image
|
asset.name: model.image
|
||||||
asset.isImage: asset.name.includes("data")
|
asset.isImage: asset.name.includes("data")
|
||||||
asset.isLetterIdenticon: !model.image
|
asset.isLetterIdenticon: !model.image
|
||||||
@ -37,11 +38,7 @@ StatusListView {
|
|||||||
visible: model.joined
|
visible: model.joined
|
||||||
height: visible ? implicitHeight: 0
|
height: visible ? implicitHeight: 0
|
||||||
|
|
||||||
sensor.hoverEnabled: false
|
onClicked: setActiveCommunityClicked(model.id)
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
setActiveCommunityClicked(model.id)
|
|
||||||
}
|
|
||||||
|
|
||||||
components: [
|
components: [
|
||||||
StatusFlatButton {
|
StatusFlatButton {
|
||||||
@ -49,7 +46,7 @@ StatusListView {
|
|||||||
size: StatusBaseButton.Size.Small
|
size: StatusBaseButton.Size.Small
|
||||||
type: StatusBaseButton.Type.Danger
|
type: StatusBaseButton.Type.Danger
|
||||||
borderColor: "transparent"
|
borderColor: "transparent"
|
||||||
text: qsTr("Leave community")
|
text: qsTr("Leave Community")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Global.openPopup(leaveCommunityPopup, {
|
Global.openPopup(leaveCommunityPopup, {
|
||||||
community: model.name,
|
community: model.name,
|
||||||
@ -57,19 +54,17 @@ StatusListView {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
StatusFlatRoundButton {
|
StatusFlatButton {
|
||||||
type: StatusFlatRoundButton.Type.Secondary
|
size: StatusBaseButton.Size.Tiny
|
||||||
width: 44
|
leftPadding: 4
|
||||||
height: 44
|
rightPadding: 0
|
||||||
icon.source: model.muted ? Style.svg("communities/notifications-muted")
|
icon.name: model.muted ? "notification-muted" : "notification"
|
||||||
: Style.svg("communities/notifications")
|
|
||||||
onClicked: root.setCommunityMutedClicked(model.id, !model.muted)
|
onClicked: root.setCommunityMutedClicked(model.id, !model.muted)
|
||||||
},
|
},
|
||||||
|
StatusFlatButton {
|
||||||
StatusFlatRoundButton {
|
size: StatusBaseButton.Size.Tiny
|
||||||
type: StatusFlatRoundButton.Type.Secondary
|
leftPadding: 4
|
||||||
width: 44
|
rightPadding: 0
|
||||||
height: 44
|
|
||||||
icon.name: "invite-users"
|
icon.name: "invite-users"
|
||||||
onClicked: root.inviteFriends(model)
|
onClicked: root.inviteFriends(model)
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,6 @@ SettingsContentBase {
|
|||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
titleRowComponentLoader.sourceComponent: StatusButton {
|
titleRowComponentLoader.sourceComponent: StatusButton {
|
||||||
size: StatusBaseButton.Size.Small
|
|
||||||
text: qsTr("Import community")
|
text: qsTr("Import community")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Global.openPopup(importCommunitiesPopupComponent)
|
Global.openPopup(importCommunitiesPopupComponent)
|
||||||
@ -43,13 +42,13 @@ SettingsContentBase {
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
spacing: Style.current.padding
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Style.current.padding
|
anchors.leftMargin: Style.current.padding
|
||||||
color: Theme.palette.baseColor1
|
color: Theme.palette.baseColor1
|
||||||
text: qsTr("Communities you've joined")
|
text: qsTr("Communities you've joined")
|
||||||
font.pixelSize: 15
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CommunitiesListPanel {
|
CommunitiesListPanel {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user