Files
custum-hyprpanel/modules/menus/powerDropdown/index.ts
Jas Singh 8c2537b917 Added the ability to change bar locations. (#257)
* Added the ability to change bar locations.

* Update dropdown margins

* Make dropdown to bar gap configurable and organized code.
2024-09-14 23:29:00 -07:00

21 lines
748 B
TypeScript

import Window from 'types/widgets/window.js';
import DropdownMenu from '../shared/dropdown/index.js';
import { PowerButton } from './button.js';
import { Attribute, Child } from 'lib/types/widget.js';
export default (): Window<Child, Attribute> => {
return DropdownMenu({
name: 'powerdropdownmenu',
transition: 'crossfade',
child: Widget.Box({
class_name: 'menu-items power-dropdown',
child: Widget.Box({
vertical: true,
hexpand: true,
class_name: 'menu-items-container power-dropdown',
children: [PowerButton('shutdown'), PowerButton('reboot'), PowerButton('logout'), PowerButton('sleep')],
}),
}),
});
};