mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-18 09:37:59 +00:00
chore: hide activity center button
This commit is contained in:
parent
815abdc226
commit
20bbf97787
@ -137,49 +137,49 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
// Rectangle {
|
||||||
id: separator
|
// id: separator
|
||||||
width: 1
|
// width: 1
|
||||||
height: 24
|
// height: 24
|
||||||
color: Style.current.separator
|
// color: Style.current.separator
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
// anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
// }
|
||||||
|
|
||||||
StatusIconButton {
|
// StatusIconButton {
|
||||||
id: activityCenterBtn
|
// id: activityCenterBtn
|
||||||
icon.name: "bell"
|
// icon.name: "bell"
|
||||||
iconColor: Style.current.contextMenuButtonForegroundColor
|
// iconColor: Style.current.contextMenuButtonForegroundColor
|
||||||
hoveredIconColor: Style.current.contextMenuButtonForegroundColor
|
// hoveredIconColor: Style.current.contextMenuButtonForegroundColor
|
||||||
highlightedBackgroundColor: Style.current.contextMenuButtonBackgroundHoverColor
|
// highlightedBackgroundColor: Style.current.contextMenuButtonBackgroundHoverColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
// anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
onClicked: activityCenter.open()
|
// onClicked: activityCenter.open()
|
||||||
|
|
||||||
Rectangle {
|
// Rectangle {
|
||||||
// TODO unhardcode this
|
// // TODO unhardcode this
|
||||||
property int nbUnseenNotifs: 3
|
// property int nbUnseenNotifs: 3
|
||||||
|
|
||||||
id: badge
|
// id: badge
|
||||||
visible: nbUnseenNotifs > 0
|
// visible: nbUnseenNotifs > 0
|
||||||
anchors.top: parent.top
|
// anchors.top: parent.top
|
||||||
anchors.topMargin: -2
|
// anchors.topMargin: -2
|
||||||
anchors.left: parent.right
|
// anchors.left: parent.right
|
||||||
anchors.leftMargin: -17
|
// anchors.leftMargin: -17
|
||||||
radius: height / 2
|
// radius: height / 2
|
||||||
color: Style.current.blue
|
// color: Style.current.blue
|
||||||
border.color: activityCenterBtn.hovered ? Style.current.secondaryBackground : Style.current.background
|
// border.color: activityCenterBtn.hovered ? Style.current.secondaryBackground : Style.current.background
|
||||||
border.width: 2
|
// border.width: 2
|
||||||
width: badge.nbUnseenNotifs < 10 ? 18 : badge.width + 14
|
// width: badge.nbUnseenNotifs < 10 ? 18 : badge.width + 14
|
||||||
height: 18
|
// height: 18
|
||||||
|
|
||||||
Text {
|
// Text {
|
||||||
font.pixelSize: 12
|
// font.pixelSize: 12
|
||||||
color: Style.current.white
|
// color: Style.current.white
|
||||||
anchors.centerIn: parent
|
// anchors.centerIn: parent
|
||||||
text: badge.nbUnseenNotifs
|
// text: badge.nbUnseenNotifs
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivityCenter {
|
ActivityCenter {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user