added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 236b8c2a6b
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,17 @@
import { Widget, SystemTray } from "../imports.js";
const { Button, Icon } = Widget;
export const getTrayItems = (self) => {
self.children = SystemTray.items.map((item) =>
Button({
className: "trayIcon",
child: Icon({
setup: (self) => self.bind("icon", item, "icon"),
}),
setup: (self) =>
self.bind("tooltip-markup", item, "tooltip-markup"),
onPrimaryClick: (_, event) => item.activate(event),
onSecondaryClick: (_, event) => item.openMenu(event),
}),
);
};