fix(CreateChatView): updated layout spacing and sizes

Closes #6452
This commit is contained in:
Alexandra Betouni 2022-07-15 17:53:29 +03:00 committed by Alexandra Betouni
parent 16b866ccbd
commit 44df79d671
2 changed files with 13 additions and 9 deletions

@ -1 +1 @@
Subproject commit e0fd627050b45440132acce69c8c317f4efe129a Subproject commit fb99107baee9a91f2e3d91f113fb8a70910d3fa4

View File

@ -85,6 +85,7 @@ Page {
anchors.topMargin: Style.current.halfPadding anchors.topMargin: Style.current.halfPadding
height: tagSelector.height height: tagSelector.height
clip: true clip: true
spacing: Style.current.padding
StatusTagSelector { StatusTagSelector {
id: tagSelector id: tagSelector
Layout.fillWidth: true Layout.fillWidth: true
@ -112,6 +113,7 @@ Page {
StatusButton { StatusButton {
id: confirmButton id: confirmButton
implicitWidth: 106
implicitHeight: 44 implicitHeight: 44
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
enabled: tagSelector.namesModel.count > 0 enabled: tagSelector.namesModel.count > 0
@ -124,13 +126,13 @@ Page {
} }
Item { Item {
implicitHeight: 32
implicitWidth: 32
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop
implicitHeight: 44
implicitWidth: 44
StatusActivityCenterButton { StatusActivityCenterButton {
id: notificationButton id: notificationButton
anchors.centerIn: parent anchors.right: parent.right
unreadNotificationsCount: activityCenter.unreadNotificationsCount unreadNotificationsCount: activityCenter.unreadNotificationsCount
onClicked: activityCenter.open() onClicked: activityCenter.open()
} }
@ -175,8 +177,11 @@ Page {
} }
StatusBaseText { StatusBaseText {
width: parent.width*.66 anchors.left: parent.left
anchors.centerIn: parent anchors.leftMargin: 252
anchors.right: parent.right
anchors.rightMargin: 252
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -(headerRow.height/2) anchors.verticalCenterOffset: -(headerRow.height/2)
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
@ -184,9 +189,8 @@ Page {
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
font.pixelSize: 15 font.pixelSize: 15
color: Theme.palette.baseColor1 color: Theme.palette.baseColor1
text: qsTr("You can only send direct messages to your Contacts.\n\n text: qsTr("You can only send direct messages to your Contacts.\n
Send a contact request to the person you would like to chat with, you will be able to \ Send a contact request to the person you would like to chat with, you will be able to chat with them once they have accepted your contact request.")
chat with them once they have accepted your contact request.")
Component.onCompleted: { Component.onCompleted: {
if (visible) { if (visible) {
tagSelector.enabled = false; tagSelector.enabled = false;