2023-10-18 11:53:49 -04:00
|
|
|
import { Widget } from '../../imports.js';
|
|
|
|
const { Box, Label, Revealer } = Widget;
|
2023-10-02 12:06:35 -04:00
|
|
|
|
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';
|
2023-09-12 14:22:21 -04:00
|
|
|
|
2023-10-02 12:06:35 -04:00
|
|
|
|
2023-10-17 13:47:02 -04:00
|
|
|
const QuickSettingsWidget = () => Box({
|
2023-09-21 20:01:14 -04:00
|
|
|
className: 'qs-container',
|
|
|
|
vertical: true,
|
|
|
|
children: [
|
2023-09-12 14:22:21 -04:00
|
|
|
|
2023-09-21 20:01:14 -04:00
|
|
|
Box({
|
|
|
|
className: 'quick-settings',
|
|
|
|
vertical: true,
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Label({
|
|
|
|
label: 'Control Center',
|
|
|
|
className: 'title',
|
|
|
|
halign: 'start',
|
|
|
|
style: 'margin-left: 20px'
|
|
|
|
}),
|
2023-09-12 14:22:21 -04:00
|
|
|
|
2023-10-17 13:47:02 -04:00
|
|
|
ButtonGrid(),
|
2023-09-12 14:22:21 -04:00
|
|
|
|
2023-10-17 13:47:02 -04:00
|
|
|
SliderBox(),
|
2023-09-12 14:22:21 -04:00
|
|
|
|
2023-10-18 11:53:49 -04:00
|
|
|
ToggleButton(),
|
2023-09-15 23:22:16 -04:00
|
|
|
|
2023-09-21 20:01:14 -04:00
|
|
|
],
|
|
|
|
}),
|
2023-09-12 14:22:21 -04:00
|
|
|
|
2023-09-21 20:01:14 -04:00
|
|
|
Revealer({
|
|
|
|
transition: 'slide_down',
|
|
|
|
child: Player(),
|
|
|
|
})
|
2023-09-12 14:22:21 -04:00
|
|
|
|
2023-09-21 20:01:14 -04:00
|
|
|
],
|
|
|
|
});
|
|
|
|
|
2023-10-16 18:11:19 -04:00
|
|
|
export default () => PopupWindow({
|
2023-09-21 20:01:14 -04:00
|
|
|
name: 'quick-settings',
|
2023-10-07 21:02:23 -04:00
|
|
|
anchor: [ 'top', 'right' ],
|
2023-09-21 20:01:14 -04:00
|
|
|
margin: [ 8, 5, 0, ],
|
2023-10-17 13:47:02 -04:00
|
|
|
child: QuickSettingsWidget(),
|
2023-09-12 14:22:21 -04:00
|
|
|
});
|