mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-04 23:02:48 +00:00
feat: update system
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user