Commit 100075ab authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Notifications] Don't show blue icon when a notification is active

Also consider a notification as unread only when it isn't active anymore.

Differential Revision: https://phabricator.kde.org/D21423
parent 41e41b19
......@@ -107,17 +107,6 @@ MouseArea {
visible: false
running: visible
}
PlasmaCore.SvgItem {
id: notificationActiveItem
anchors.fill: parent
svg: notificationSvg
elementId: "notification-active"
opacity: 0
scale: 2
visible: opacity > 0
}
}
PlasmaCore.IconItem {
......@@ -149,14 +138,6 @@ MouseArea {
visible: true
}
},
State { // active notification
when: compactRoot.activeCount > 0
PropertyChanges {
target: notificationActiveItem
scale: 1
opacity: 1
}
},
State { // do not disturb
when: compactRoot.inhibited
PropertyChanges {
......@@ -187,7 +168,7 @@ MouseArea {
Transition {
to: "*" // any state
NumberAnimation {
targets: [notificationIcon, notificationActiveItem, dndIcon]
targets: [notificationIcon, dndIcon]
properties: "opacity,scale"
duration: units.longDuration
easing.type: Easing.InOutQuad
......
......@@ -276,7 +276,7 @@ void Notifications::Private::updateCount()
// TODO Jobs could also be unread?
if (notificationsModel) {
if (date > notificationsModel->lastRead()) {
if (!active && date > notificationsModel->lastRead()) {
++unread;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment