From 9b1a0335710c2fbfea5bf62feb62681dc7c55e39 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Tue, 12 Jul 2022 18:00:47 +0300 Subject: [PATCH] fix(StatusActivityCenterButton): fixed actvity icon position (#763) Closes https://github.com/status-im/status-desktop/issues/6350 --- .../Controls/StatusActivityCenterButton.qml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/StatusQ/Controls/StatusActivityCenterButton.qml b/src/StatusQ/Controls/StatusActivityCenterButton.qml index 9b46dd55..0fc5acf7 100644 --- a/src/StatusQ/Controls/StatusActivityCenterButton.qml +++ b/src/StatusQ/Controls/StatusActivityCenterButton.qml @@ -44,18 +44,9 @@ StatusFlatRoundButton { id: statusBadge visible: value > 0 - anchors.top: parent.top - anchors.left: parent.right - anchors.topMargin: -3 - anchors.leftMargin: { - if (statusBadge.value > 99) { - return -22 - } - if (statusBadge.value > 9) { - return -21 - } - return -18 - } + anchors.centerIn: parent + anchors.verticalCenterOffset: -(icon.height/3) + anchors.horizontalCenterOffset: (width/2.5) border.width: 2 border.color: parent.hovered ? Theme.palette.baseColor2 : Theme.palette.statusAppLayout.backgroundColor }