mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
notif clear: choreography
This commit is contained in:
parent
c32759d7e0
commit
a5947f58b7
2 changed files with 6 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ let configOptions = {
|
|||
'writingCursor': " ...", // Warning: Using weird characters can mess up Markdown rendering
|
||||
},
|
||||
'animations': {
|
||||
'choreographyDelay': 35,
|
||||
'durationSmall': 110,
|
||||
'durationLarge': 180,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -102,7 +102,11 @@ export default (props) => {
|
|||
}),
|
||||
child: ListActionButton('clear_all', 'Clear', () => {
|
||||
Notifications.clear();
|
||||
notificationList.get_children().forEach(ch => ch.attribute.destroyWithAnims())
|
||||
const kids = notificationList.get_children();
|
||||
for (let i = 0; i < kids.length; i++) {
|
||||
const kid = kids[i];
|
||||
Utils.timeout(userOptions.animations.choreographyDelay * i, () => kid.attribute.destroyWithAnims());
|
||||
}
|
||||
})
|
||||
})
|
||||
const notifCount = Label({
|
||||
|
|
|
|||
Loading…
Reference in a new issue