fix(GroupChatPopup): fix ui elements

This corrects the call to action button in the modal footer
as well as the "no friends" rectangle, which was wrongly rendered.
This commit is contained in:
Pascal Precht 2021-10-27 16:17:15 +02:00 committed by Iuri Matias
parent 8617c70742
commit 5fd317a6e1
3 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,6 @@ import QtQuick 2.13
import QtQuick.Controls 2.3
import utils 1.0
import "../../../../shared"
import "../controls"

View File

@ -127,6 +127,7 @@ ModalPopup {
NoFriendsRectangle {
id: noContactsRect
visible: false
anchors.top: groupName.bottom
anchors.topMargin: Style.current.xlPadding
anchors.horizontalCenter: parent.horizontalCenter
@ -158,13 +159,12 @@ ModalPopup {
width: parent.width
height: btnSelectMembers.height
StatusFlatRoundButton {
StatusRoundButton {
id: btnSelectMembers
visible: selectChatMembers
anchors.bottom: parent.bottom
anchors.right: parent.right
icon.name: "arrow-right"
type: StatusFlatRoundButton.Type.Secondary
icon.width: 20
icon.height: 16
enabled: !!pubKeys.length

View File

@ -2,10 +2,11 @@ import QtQuick 2.13
import utils 1.0
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Controls 0.1
import "../popups"
import "../panels"
Item {
id: noContactsRect
@ -13,10 +14,10 @@ Item {
//% "You dont have any contacts yet. Invite your friends to start chatting."
property string text: qsTrId("you-don-t-have-any-contacts-yet--invite-your-friends-to-start-chatting-")
property alias textColor: noContacts.color
StyledText {
StatusBaseText {
id: noContacts
text: noContactsRect.text
color: Style.current.secondaryText
color: Theme.palette.baseColor1
anchors.top: parent.top
anchors.topMargin: Style.current.padding
anchors.left: parent.left