nixos-configs/devices/wim/config/ags/js/bar/quick-settings.js

22 lines
584 B
JavaScript
Raw Normal View History

import { Widget, App } from '../../imports.js';
const { Box, Label } = Widget;
2023-09-05 15:10:25 -04:00
import EventBox from '../misc/cursorbox.js';
2023-09-11 19:57:21 -04:00
export default () => EventBox({
className: 'toggle-off',
onPrimaryClickRelease: () => App.toggleWindow('quick-settings'),
connections: [[App, (self, windowName, visible) => {
if (windowName == 'quick-settings')
self.toggleClassName('toggle-on', visible);
}]],
child: Box({
className: 'quick-settings-toggle',
vertical: false,
child: Label({
label: '  ',
}),
2023-09-05 15:10:25 -04:00
}),
});