status-desktop/ui/shared/views/NoFriendsRectangle.qml

40 lines
1.1 KiB
QML
Raw Normal View History

2020-12-11 20:38:10 +00:00
import QtQuick 2.13
import utils 1.0
import StatusQ.Controls 0.1
import "../popups"
import "../panels"
2020-12-11 20:38:10 +00:00
Item {
2020-12-11 20:38:10 +00:00
id: noContactsRect
width: 260
2021-02-18 16:36:05 +00:00
//% "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
2020-12-11 20:38:10 +00:00
StyledText {
id: noContacts
text: noContactsRect.text
color: Style.current.secondaryText
2020-12-11 20:38:10 +00:00
anchors.top: parent.top
anchors.topMargin: Style.current.padding
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
font.pixelSize: 15
2020-12-11 20:38:10 +00:00
horizontalAlignment: Text.AlignHCenter
}
StatusButton {
2020-12-11 20:38:10 +00:00
//% "Invite friends"
text: qsTrId("invite-friends")
2020-12-11 20:38:10 +00:00
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: noContacts.bottom
anchors.topMargin: Style.current.padding
onClicked: inviteFriendsPopup.open()
2020-12-11 20:38:10 +00:00
}
InviteFriendsPopup {
id: inviteFriendsPopup
}
}