nixos-configs/devices/wim/config/ags/js/notifications/main.js
matt1432 a609bdc61b
All checks were successful
Discord / discord commits (push) Has been skipped
fix(ags notif): make first notif appear
2023-12-28 23:20:03 -05:00

22 lines
536 B
JavaScript

import { Window } from 'resource:///com/github/Aylur/ags/widget.js';
import NotifCenterWidget from './center.js';
import PopUpsWidget from './popup.js';
import PopupWindow from '../misc/popup.js';
export const NotifPopups = () => Window({
name: 'notifications',
anchor: ['top', 'left'],
child: PopUpsWidget(),
});
const TOP_MARGIN = 6;
export const NotifCenter = () => PopupWindow({
name: 'notification-center',
anchor: ['top', 'right'],
margins: [TOP_MARGIN, 0, 0, 0],
child: NotifCenterWidget(),
});