mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-25 12:52:09 +00:00
32 lines
No EOL
884 B
JavaScript
32 lines
No EOL
884 B
JavaScript
const { Gdk, Gtk } = imports.gi;
|
|
import { Utils, Widget } from '../../imports.js';
|
|
const { execAsync, exec } = Utils;
|
|
const { Box, Button, EventBox, Label, Scrollable } = Widget;
|
|
|
|
export const SidebarModule = ({
|
|
name,
|
|
child
|
|
}) => {
|
|
return Box({
|
|
className: 'sidebar-module',
|
|
vertical: true,
|
|
children: [
|
|
Button({
|
|
child: Box({
|
|
children: [
|
|
Label({
|
|
className: 'txt-small txt',
|
|
label: `${name}`,
|
|
}),
|
|
Box({
|
|
hexpand: true,
|
|
}),
|
|
Label({
|
|
className: 'sidebar-module-btn-arrow',
|
|
})
|
|
]
|
|
})
|
|
})
|
|
]
|
|
});
|
|
} |