feat: add activity center switch to show and hide the bell icon

This commit is contained in:
Jonathan Rainville 2021-06-14 12:39:49 -04:00
parent 82c585cc50
commit 933dbe9586
3 changed files with 17 additions and 0 deletions

View File

@ -139,6 +139,7 @@ Item {
Rectangle {
id: separator
visible: activityCenterBtn.visible
width: 1
height: 24
color: Style.current.separator
@ -147,6 +148,7 @@ Item {
StatusIconButton {
id: activityCenterBtn
visible: appSettings.isActivityCenterEnabled
icon.name: "bell"
iconColor: Style.current.contextMenuButtonForegroundColor
hoveredIconColor: Style.current.contextMenuButtonForegroundColor

View File

@ -109,6 +109,20 @@ Item {
}
}
StatusSettingsLineButton {
text: qsTr("Activity Center")
isSwitch: true
switchChecked: appSettings.isActivityCenterEnabled
onClicked: {
if (!appSettings.isActivityCenterEnabled) {
confirmationPopup.settingsProp = "isActivityCenterEnabled"
confirmationPopup.open()
} else {
appSettings.isActivityCenterEnabled = false
}
}
}
// StatusSettingsLineButton {
// //% "Node Management"
// text: qsTrId("node-management")

View File

@ -112,6 +112,7 @@ RowLayout {
property bool isWalletEnabled: false
property bool nodeManagementEnabled: false
property bool isBrowserEnabled: false
property bool isActivityCenterEnabled: false
property bool displayChatImages: false
property bool useCompactMode: true
property bool timelineEnabled: true