feat(ChatView): add tooltips to chat action buttons

Closes #5136
This commit is contained in:
Pascal Precht 2022-04-14 13:42:54 +02:00 committed by r4bbit.eth
parent dfefeae026
commit 7d099327ae

View File

@ -89,6 +89,7 @@ Item {
StatusIconTabButton {
icon.name: "public-chat"
checked: publicChatCommunityContextMenu.visible
highlighted: publicChatCommunityContextMenu.visible
onClicked: { publicChatCommunityContextMenu.popup(); }
StatusPopupMenu {
id: publicChatCommunityContextMenu
@ -107,16 +108,27 @@ Item {
onTriggered: Global.openPopup(communitiesPopupComponent)
enabled: localAccountSensitiveSettings.communitiesEnabled
}
}
}
StatusToolTip {
text: qsTr("Public chats & communities")
visible: parent.hovered
}
}
StatusIconTabButton {
icon.name: "edit"
checked: root.store.openCreateChat
highlighted: root.store.openCreateChat
onClicked: {
root.store.openCreateChat = !root.store.openCreateChat;
}
StatusToolTip {
text: qsTr("Start chat")
visible: parent.hovered
}
}
}