fix(StatusActivityCenterButton): fixed actvity icon position (#763)
Closes https://github.com/status-im/status-desktop/issues/6350
This commit is contained in:
parent
052b37a348
commit
c63ecee172
|
@ -44,18 +44,9 @@ StatusFlatRoundButton {
|
||||||
id: statusBadge
|
id: statusBadge
|
||||||
|
|
||||||
visible: value > 0
|
visible: value > 0
|
||||||
anchors.top: parent.top
|
anchors.centerIn: parent
|
||||||
anchors.left: parent.right
|
anchors.verticalCenterOffset: -(icon.height/3)
|
||||||
anchors.topMargin: -3
|
anchors.horizontalCenterOffset: (width/2.5)
|
||||||
anchors.leftMargin: {
|
|
||||||
if (statusBadge.value > 99) {
|
|
||||||
return -22
|
|
||||||
}
|
|
||||||
if (statusBadge.value > 9) {
|
|
||||||
return -21
|
|
||||||
}
|
|
||||||
return -18
|
|
||||||
}
|
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue