21 lines
637 B
JavaScript
21 lines
637 B
JavaScript
import App from 'resource:///com/github/Aylur/ags/app.js';
|
|
import { Box, Label } from 'resource:///com/github/Aylur/ags/widget.js';
|
|
|
|
import EventBox from '../misc/cursorbox.js';
|
|
|
|
|
|
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: ' ',
|
|
}),
|
|
}),
|
|
});
|