Files
custum-hyprpanel/src/components/menus/energy/index.tsx
Jas Singh 210d5e2a5e Fixed an issue that would cause the scroll direction to be inverted on secondary monitors. (#683)
* Fixed an issue that would cause the scroll direction to be inverted on secondary monitors.

* Update import paths and tsconfig.
2024-12-31 03:20:47 -08:00

26 lines
920 B
TypeScript

import DropdownMenu from '../shared/dropdown/index.js';
import { EnergyProfiles } from './profiles/index.js';
import { Brightness } from './brightness/index.js';
import options from 'src/options.js';
import { bind } from 'astal';
import { Gtk } from 'astal/gtk3';
import { RevealerTransitionMap } from 'src/lib/constants/options.js';
const { transition } = options.menus;
export default (): JSX.Element => {
return (
<DropdownMenu
name={'energymenu'}
transition={bind(transition).as((transition) => RevealerTransitionMap[transition])}
>
<box className={'menu-items energy'} halign={Gtk.Align.FILL} hexpand>
<box className={'menu-items-container energy'} halign={Gtk.Align.FILL} hexpand vertical>
<Brightness />
<EnergyProfiles />
</box>
</box>
</DropdownMenu>
);
};