change some colors and styling, fix a issue with activeAsync in notifications Window
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user