fix(StatusActivityCenterButton): updated offset values (#780)
Closes https://github.com/status-im/status-desktop/issues/6350
This commit is contained in:
parent
57d750e514
commit
3ac6f48fbd
|
@ -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+");
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue