Files
colorshell/ags/widget/bar/Tray.tsx
T
2025-01-22 13:45:59 -03:00

18 lines
419 B
TypeScript

import { Box, Label } from "astal/gtk3/widget";
import AstalTray from "gi://AstalTray"
const astalTray = AstalTray.get_default();
let items: Array<AstalTray.TrayItem> = astalTray.items;
const handlerId = astalTray.connect("item-added", () => {
items = astalTray.items;
console.log(astalTray.items);
}) as number;
export function Tray() {
return (
<Box className={"tray"}>
</Box>
);
}