change some colors and styling, fix a issue with activeAsync in notifications Window

This commit is contained in:
2025-10-12 21:57:14 -03:00
parent 5cdc0d3c1e
commit e4087938a5
4 changed files with 17 additions and 17 deletions

View File

@@ -23,28 +23,28 @@ Item {
name: "MuteActive"
when: NotificationService.notificationsMuted && NotificationService.notificationsNumber
PropertyChanges {
root.notificationIcon : "\udb80\udc9b " + NotificationService.notificationsNumber
root.notificationIcon: "\udb80\udc9b " + NotificationService.notificationsNumber
}
},
State {
name: "Active"
when: !NotificationService.notificationsMuted && NotificationService.notificationsNumber
PropertyChanges {
root.notificationIcon : "\udb80\udc9a " + NotificationService.notificationsNumber
root.notificationIcon: "\udb80\udc9a " + NotificationService.notificationsNumber
}
},
State {
name: "MuteEmpty"
when: NotificationService.notificationsMuted
PropertyChanges {
root.notificationIcon : "\uec08"
root.notificationIcon: "\uec08"
}
},
State {
name: "Empty"
when: !NotificationService.notificationsMuted && !NotificationService.notificationsNumber
PropertyChanges {
root.notificationIcon : "\ueaa2"
root.notificationIcon: "\ueaa2"
}
}
]
@@ -65,7 +65,7 @@ Item {
id: notifText
anchors.fill: parent
text: root.notificationIcon
text: root.notificationIcon
}
MouseArea {
@@ -74,9 +74,10 @@ Item {
onClicked: mouse => {
if (mouse.button === Qt.RightButton) {
NotificationService.manualNotificationsMuted = !NotificationService.manualNotificationsMuted
NotificationService.manualNotificationsMuted = !NotificationService.manualNotificationsMuted;
return;
}
}
console.log(root.createWindow);
root.createWindow = !root.createWindow;
}
}
@@ -85,11 +86,10 @@ Item {
LazyLoader {
id: windowLoader
activeAsync: NotificationService.notificationsNumber ? createWindow : false
active: NotificationService.notificationsNumber ? root.createWindow : false
component: NotificationWindow {
onClear: root.createWindow = false
onClear: root.createWindow = false
}
}
}