2023-10-31 08:32:40 -04:00
|
|
|
import App from 'resource:///com/github/Aylur/ags/app.js';
|
|
|
|
import { Box, Label } from 'resource:///com/github/Aylur/ags/widget.js';
|
2023-09-05 15:10:25 -04:00
|
|
|
|
2023-10-17 13:47:02 -04:00
|
|
|
import EventBox from '../misc/cursorbox.js';
|
2023-09-11 19:57:21 -04:00
|
|
|
|
2023-10-02 12:06:35 -04:00
|
|
|
|
2023-10-17 13:47:02 -04:00
|
|
|
export default () => EventBox({
|
2023-10-20 23:11:21 -04:00
|
|
|
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,
|
2023-11-06 21:36:12 -05:00
|
|
|
child: Label(' '),
|
2023-09-05 15:10:25 -04:00
|
|
|
}),
|
|
|
|
});
|