feat(Chat/BlockedContacts) Add a Blocked bar for blocked user profile
Use new UI StatusBanner with Danger variant. Modify StatusQ external to new master commit.
This commit is contained in:
parent
f69db2c97b
commit
b5f4e3783c
|
@ -1 +1 @@
|
|||
Subproject commit 5e19140c8b066b5058110fc27b20296726c40a87
|
||||
Subproject commit 35d12f444d4e1dacc56f47e25853281477177063
|
|
@ -89,6 +89,15 @@ StatusModal {
|
|||
anchors.top: parent.top
|
||||
width: parent.width
|
||||
|
||||
// Blocked User Status Bar
|
||||
StatusBanner {
|
||||
id: blockedUsrBar
|
||||
width: parent.width
|
||||
visible: isBlocked
|
||||
type: StatusBanner.Type.Danger
|
||||
statusText: qsTr("Blocked")
|
||||
}
|
||||
|
||||
Item {
|
||||
height: 16
|
||||
width: parent.width
|
||||
|
@ -121,11 +130,6 @@ StatusModal {
|
|||
width: parent.width
|
||||
}
|
||||
|
||||
StatusModalDivider {
|
||||
topPadding: 12
|
||||
bottomPadding: 16
|
||||
}
|
||||
|
||||
StatusDescriptionListItem {
|
||||
title: qsTr("Share Profile URL")
|
||||
subTitle: {
|
||||
|
@ -163,12 +167,6 @@ StatusModal {
|
|||
width: parent.width
|
||||
}
|
||||
|
||||
StatusModalDivider {
|
||||
visible: !isCurrentUser
|
||||
topPadding: 8
|
||||
bottomPadding: 12
|
||||
}
|
||||
|
||||
StatusDescriptionListItem {
|
||||
visible: !isCurrentUser
|
||||
title: qsTr("Chat settings")
|
||||
|
|
|
@ -261,25 +261,13 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 40
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
// Blocked User Status Bar
|
||||
StatusBanner {
|
||||
id: blockedUsrBar
|
||||
width: parent.width
|
||||
visible: isBlocked
|
||||
|
||||
Rectangle {
|
||||
id: blockedBanner
|
||||
anchors.fill: parent
|
||||
color: Style.current.red
|
||||
opacity: 0.1
|
||||
}
|
||||
|
||||
Text {
|
||||
id: blockedText
|
||||
anchors.centerIn: blockedBanner
|
||||
color: Style.current.red
|
||||
text: qsTr("Blocked")
|
||||
}
|
||||
type: StatusBanner.Type.Danger
|
||||
statusText: qsTr("Blocked")
|
||||
}
|
||||
|
||||
StackLayout {
|
||||
|
|
Loading…
Reference in New Issue