status-desktop/ui/app/AppLayouts/Chat/components/NoFriendsRectangle.qml

34 lines
1001 B
QML
Raw Normal View History

2020-12-11 20:38:10 +00:00
import QtQuick 2.13
import "../../../../imports"
import "../../../../shared"
Rectangle {
id: noContactsRect
width: 260
StyledText {
id: noContacts
//% "You dont have any contacts yet. Invite your friends to start chatting."
text: qsTrId("you-don-t-have-any-contacts-yet--invite-your-friends-to-start-chatting-")
color: Style.current.darkGrey
anchors.top: parent.top
anchors.topMargin: Style.current.padding
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
}
StyledButton {
//% "Invite friends"
label: qsTrId("invite-friends")
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: noContacts.bottom
anchors.topMargin: Style.current.xlPadding
onClicked: {
inviteFriendsPopup.open()
}
}
InviteFriendsPopup {
id: inviteFriendsPopup
}
}