From fb99107baee9a91f2e3d91f113fb8a70910d3fa4 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Fri, 15 Jul 2022 19:40:00 +0300 Subject: [PATCH] fix(StatusActivityCenterButton): updated offset values (#780) Closes https://github.com/status-im/status-desktop/issues/6350 --- src/StatusQ/Components/StatusBadge.qml | 2 ++ src/StatusQ/Controls/StatusActivityCenterButton.qml | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/StatusQ/Components/StatusBadge.qml b/src/StatusQ/Components/StatusBadge.qml index bee30d40..e790d473 100644 --- a/src/StatusQ/Components/StatusBadge.qml +++ b/src/StatusQ/Components/StatusBadge.qml @@ -30,6 +30,8 @@ Rectangle { font.weight: Font.Medium color: Theme.palette.statusBadge.foregroundColor anchors.centerIn: parent + anchors.verticalCenterOffset: statusBadge.border.width/4 + anchors.horizontalCenterOffset: statusBadge.border.width/4 text: { if (statusBadge.value > 99) { return qsTr("99+"); diff --git a/src/StatusQ/Controls/StatusActivityCenterButton.qml b/src/StatusQ/Controls/StatusActivityCenterButton.qml index 0fc5acf7..92ab0704 100644 --- a/src/StatusQ/Controls/StatusActivityCenterButton.qml +++ b/src/StatusQ/Controls/StatusActivityCenterButton.qml @@ -42,10 +42,9 @@ StatusFlatRoundButton { StatusBadge { id: statusBadge - visible: value > 0 anchors.centerIn: parent - anchors.verticalCenterOffset: -(icon.height/3) + anchors.verticalCenterOffset: -(icon.height/2.5) anchors.horizontalCenterOffset: (width/2.5) border.width: 2 border.color: parent.hovered ? Theme.palette.baseColor2 : Theme.palette.statusAppLayout.backgroundColor