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 {
|
Rectangle {
|
||||||
id: separator
|
id: separator
|
||||||
|
visible: activityCenterBtn.visible
|
||||||
width: 1
|
width: 1
|
||||||
height: 24
|
height: 24
|
||||||
color: Style.current.separator
|
color: Style.current.separator
|
||||||
|
@ -147,6 +148,7 @@ Item {
|
||||||
|
|
||||||
StatusIconButton {
|
StatusIconButton {
|
||||||
id: activityCenterBtn
|
id: activityCenterBtn
|
||||||
|
visible: appSettings.isActivityCenterEnabled
|
||||||
icon.name: "bell"
|
icon.name: "bell"
|
||||||
iconColor: Style.current.contextMenuButtonForegroundColor
|
iconColor: Style.current.contextMenuButtonForegroundColor
|
||||||
hoveredIconColor: 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 {
|
// StatusSettingsLineButton {
|
||||||
// //% "Node Management"
|
// //% "Node Management"
|
||||||
// text: qsTrId("node-management")
|
// text: qsTrId("node-management")
|
||||||
|
|
|
@ -112,6 +112,7 @@ RowLayout {
|
||||||
property bool isWalletEnabled: false
|
property bool isWalletEnabled: false
|
||||||
property bool nodeManagementEnabled: false
|
property bool nodeManagementEnabled: false
|
||||||
property bool isBrowserEnabled: false
|
property bool isBrowserEnabled: false
|
||||||
|
property bool isActivityCenterEnabled: false
|
||||||
property bool displayChatImages: false
|
property bool displayChatImages: false
|
||||||
property bool useCompactMode: true
|
property bool useCompactMode: true
|
||||||
property bool timelineEnabled: true
|
property bool timelineEnabled: true
|
||||||
|
|
Loading…
Reference in New Issue