status-desktop/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml

106 lines
2.9 KiB
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
2020-05-28 00:12:07 +00:00
import "../../../../shared"
import "../../../../imports"
2020-07-09 15:21:45 +00:00
import "../components"
2020-05-28 00:12:07 +00:00
Item {
id: element
2020-05-28 00:12:07 +00:00
Layout.fillHeight: true
Layout.fillWidth: true
Image {
id: walkieTalkieImage
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
source: "../../../../onboarding/img/chat@2x.png"
}
Item {
id: links
anchors.top: walkieTalkieImage.bottom
anchors.horizontalCenter: walkieTalkieImage.horizontalCenter
height: shareKeyLink.height
width: childrenRect.width
StyledText {
id: shareKeyLink
2021-02-18 16:36:05 +00:00
//% "Share your chat key"
text: qsTrId("share-your-chat-key")
font.pixelSize: 15
color: Style.current.blue
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onEntered: {
parent.font.underline = true
}
onExited: {
parent.font.underline = false
}
onClicked: {
2020-11-30 17:03:52 +00:00
openProfilePopup(profileModel.profile.username, profileModel.profile.pubKey, profileModel.profile.thumbnailImage);
}
}
}
StyledText {
id: orText
2021-02-18 16:36:05 +00:00
//% "or"
text: qsTrId("or")
font.pixelSize: 15
color: Style.current.secondaryText
anchors.left: shareKeyLink.right
anchors.leftMargin: 2
anchors.bottom: shareKeyLink.bottom
}
StyledText {
id: inviteLink
2021-02-18 16:36:05 +00:00
//% "invite"
text: qsTrId("invite")
font.pixelSize: 15
color: Style.current.blue
anchors.left: orText.right
anchors.leftMargin: 2
anchors.bottom: shareKeyLink.bottom
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onEntered: {
parent.font.underline = true
}
onExited: {
parent.font.underline = false
}
onClicked: {
inviteFriendsPopup.open();
}
}
2020-05-28 00:12:07 +00:00
}
}
2020-07-09 15:21:45 +00:00
StyledText {
2021-02-18 16:36:05 +00:00
//% "friends to start messaging in Status"
text: qsTrId("friends-to-start-messaging-in-status")
font.pixelSize: 15
color: Style.current.secondaryText
anchors.horizontalCenter: walkieTalkieImage.horizontalCenter
anchors.top: links.bottom
}
2020-07-09 15:21:45 +00:00
InviteFriendsPopup {
id: inviteFriendsPopup
}
2020-06-17 19:18:31 +00:00
}
/*##^##
Designer {
D{i:0;autoSize:true;formeditorColor:"#ffffff";formeditorZoom:2;height:480;width:640}
2020-06-17 19:18:31 +00:00
}
##^##*/