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 GitHub
parent 9b9b3fcfff
commit fb99107bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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+");

View File

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