fix(StatusActivityCenterButton): fixed actvity icon position (#763)

Closes https://github.com/status-im/status-desktop/issues/6350
This commit is contained in:
Alexandra Betouni 2022-07-12 18:00:47 +03:00 committed by Michał Cieślak
parent 052b37a348
commit c63ecee172
1 changed files with 3 additions and 12 deletions

View File

@ -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
}