fix(ActivitiCenterTolltip): Position tooltip arrow in the middle of the button

This commit is contained in:
Alex Jbanca 2023-03-27 12:28:08 +03:00 committed by Alex Jbanca
parent 81d4ea05e9
commit 2142a6bf9c
2 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,7 @@ StatusFlatRoundButton {
tooltip.text: qsTr("Notifications")
tooltip.orientation: StatusToolTip.Orientation.Bottom
tooltip.y: parent.height + 12
tooltip.offset: -(tooltip.x + tooltip.width/2 - root.width/2) //position arrow center in root center
StatusBadge {
id: statusBadge

View File

@ -59,7 +59,6 @@ StatusSectionLayout {
}
}
notificationButton.tooltip.offset: localAccountSensitiveSettings.expandUsersList && headerContent.membersButton.visible ? 0 : 14
onNotificationButtonClicked: Global.openActivityCenterPopup()
notificationCount: activityCenterStore.unreadNotificationsCount
hasUnseenNotifications: activityCenterStore.hasUnseenNotifications