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