nixos-configs/hosts/wim/config/ags/js/quick-settings/main.js

51 lines
995 B
JavaScript
Raw Normal View History

2023-10-18 11:53:49 -04:00
import { Widget } from '../../imports.js';
const { Box, Label, Revealer } = Widget;
2023-10-18 11:53:49 -04:00
import ButtonGrid from './button-grid.js';
import SliderBox from './slider-box.js';
import Player from '../media-player/player.js';
import PopupWindow from '../misc/popup.js';
import ToggleButton from './toggle-button.js';
const QuickSettingsWidget = () => Box({
className: 'qs-container',
vertical: true,
children: [
Box({
className: 'quick-settings',
vertical: true,
children: [
Label({
label: 'Control Center',
className: 'title',
halign: 'start',
style: 'margin-left: 20px'
}),
ButtonGrid(),
SliderBox(),
2023-10-18 11:53:49 -04:00
ToggleButton(),
],
}),
Revealer({
transition: 'slide_down',
child: Player(),
})
],
});
export default () => PopupWindow({
name: 'quick-settings',
2023-10-07 21:02:23 -04:00
anchor: [ 'top', 'right' ],
margin: [ 8, 5, 0, ],
child: QuickSettingsWidget(),
});