mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-04-22 04:29:03 +00:00
feat: integrate system config
This commit is contained in:
10
home/desktops/hyprland/ags/modules/lib/contextmenuitem.js
Normal file
10
home/desktops/hyprland/ags/modules/lib/contextmenuitem.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const { Gdk, Gtk } = imports.gi;
|
||||
import { Widget } from '../../imports.js';
|
||||
|
||||
export const ContextMenuItem = ({ label, onClick }) => Widget({
|
||||
type: Gtk.MenuItem,
|
||||
label: `${label}`,
|
||||
setup: menuItem => {
|
||||
menuItem.connect("activate", onClick);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user