fix(StatusActivityCenterButton): updated offset values (#780)

Closes https://github.com/status-im/status-desktop/issues/6350
This commit is contained in:
Alexandra Betouni 2022-07-15 19:40:00 +03:00 committed by Michał Cieślak
parent 57d750e514
commit 3ac6f48fbd
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,8 @@ Rectangle {
font.weight: Font.Medium font.weight: Font.Medium
color: Theme.palette.statusBadge.foregroundColor color: Theme.palette.statusBadge.foregroundColor
anchors.centerIn: parent anchors.centerIn: parent
anchors.verticalCenterOffset: statusBadge.border.width/4
anchors.horizontalCenterOffset: statusBadge.border.width/4
text: { text: {
if (statusBadge.value > 99) { if (statusBadge.value > 99) {
return qsTr("99+"); return qsTr("99+");

View File

@ -42,10 +42,9 @@ StatusFlatRoundButton {
StatusBadge { StatusBadge {
id: statusBadge id: statusBadge
visible: value > 0 visible: value > 0
anchors.centerIn: parent anchors.centerIn: parent
anchors.verticalCenterOffset: -(icon.height/3) anchors.verticalCenterOffset: -(icon.height/2.5)
anchors.horizontalCenterOffset: (width/2.5) anchors.horizontalCenterOffset: (width/2.5)
border.width: 2 border.width: 2
border.color: parent.hovered ? Theme.palette.baseColor2 : Theme.palette.statusAppLayout.backgroundColor border.color: parent.hovered ? Theme.palette.baseColor2 : Theme.palette.statusAppLayout.backgroundColor