parent
39f98b657b
commit
a0014161ce
108 changed files with 123 additions and 4164 deletions
modules/ags/config/ts/quick-settings
58
modules/ags/config/ts/quick-settings/main.ts
Normal file
58
modules/ags/config/ts/quick-settings/main.ts
Normal file
|
@ -0,0 +1,58 @@
|
|||
import { Box, Label, Revealer } from 'resource:///com/github/Aylur/ags/widget.js';
|
||||
|
||||
import ButtonGrid from './button-grid.ts';
|
||||
import SliderBox from './slider-box.ts';
|
||||
import Player from '../media-player/player.ts';
|
||||
import PopupWindow from '../misc/popup.ts';
|
||||
import ToggleButton from './toggle-button.ts';
|
||||
|
||||
|
||||
const QuickSettingsWidget = () => {
|
||||
const rev = Revealer({
|
||||
transition: 'slide_down',
|
||||
child: Player(),
|
||||
});
|
||||
|
||||
return Box({
|
||||
class_name: 'qs-container',
|
||||
vertical: true,
|
||||
children: [
|
||||
|
||||
Box({
|
||||
class_name: 'quick-settings',
|
||||
vertical: true,
|
||||
children: [
|
||||
|
||||
Label({
|
||||
label: 'Control Center',
|
||||
class_name: 'title',
|
||||
hpack: 'start',
|
||||
css: `
|
||||
margin-left: 20px;
|
||||
margin-bottom: 30px;
|
||||
`,
|
||||
}),
|
||||
|
||||
ButtonGrid(),
|
||||
|
||||
SliderBox(),
|
||||
|
||||
ToggleButton(rev),
|
||||
|
||||
],
|
||||
}),
|
||||
|
||||
rev,
|
||||
|
||||
],
|
||||
});
|
||||
};
|
||||
|
||||
const TOP_MARGIN = 6;
|
||||
|
||||
export default () => PopupWindow({
|
||||
name: 'quick-settings',
|
||||
anchor: ['top', 'right'],
|
||||
margins: [TOP_MARGIN, 0, 0, 0],
|
||||
child: QuickSettingsWidget(),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue