feat: update system

This commit is contained in:
2024-02-07 14:25:34 +01:00
parent 3bfeb8e6fc
commit 09afd0bef6
67 changed files with 933 additions and 1347 deletions

View File

@@ -39,14 +39,10 @@ const Popups = (parent) => {
});
};
return Widget.Box({
vertical: true,
connections: [
[Notifications, onNotified, "notified"],
[Notifications, onDismissed, "dismissed"],
[Notifications, (box, id) => onDismissed(box, id, true), "closed"],
],
});
return Widget.Box({ vertical: true })
.hook(Notifications, onNotified, "notified")
.hook(Notifications, onDismissed, "dismissed")
.hook(Notifications, (box, id) => onDismissed(box, id, true), "closed");
};
/** @param {import('types/widgets/revealer').RevealerProps['transition']} transition */
@@ -67,6 +63,6 @@ export default (monitor) =>
monitor,
name: `notifications${monitor}`,
class_name: "notifications",
binds: [["anchor", options.notifications.position]],
anchor: options.notifications.position.bind("value"),
child: PopupList(),
});