feat: add activity center switch to show and hide the bell icon
This commit is contained in:
parent
82c585cc50
commit
933dbe9586
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue