added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
17
nyx/homes/notashelf/services/wayland/ags/js/utils/tray.js
Normal file
17
nyx/homes/notashelf/services/wayland/ags/js/utils/tray.js
Normal 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),
|
||||
}),
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue