2023-10-02 12:06:35 -04:00
|
|
|
import { Widget } from '../../imports.js';
|
|
|
|
const { Window, CenterBox, Box } = Widget;
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-09-11 19:57:21 -04:00
|
|
|
import { Separator } from '../misc/separator.js';
|
2023-09-10 23:24:58 -04:00
|
|
|
import { CurrentWindow } from './current-window.js';
|
|
|
|
import { Workspaces } from './workspaces.js';
|
|
|
|
import { OskToggle } from './osk-toggle.js';
|
|
|
|
import { TabletToggle } from './tablet-toggle.js';
|
|
|
|
import { QsToggle } from './quick-settings.js';
|
|
|
|
import { NotifButton } from './notif-button.js';
|
|
|
|
import { Clock } from './clock.js';
|
|
|
|
import { SysTray } from './systray.js';
|
|
|
|
import { BatteryIndicator } from './battery.js';
|
|
|
|
import { Brightness } from './brightness.js';
|
|
|
|
import { AudioIndicator } from './audio.js';
|
2023-10-07 20:41:24 -04:00
|
|
|
import { Revealer } from './fullscreen.js';
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-10-02 12:06:35 -04:00
|
|
|
|
2023-09-04 22:27:34 -04:00
|
|
|
export const Bar = Window({
|
2023-09-08 14:14:10 -04:00
|
|
|
name: 'bar',
|
2023-09-04 22:27:34 -04:00
|
|
|
layer: 'overlay',
|
|
|
|
anchor: 'top left right',
|
|
|
|
exclusive: true,
|
2023-10-07 20:41:24 -04:00
|
|
|
child: Revealer({
|
2023-09-18 16:14:11 -04:00
|
|
|
child: CenterBox({
|
|
|
|
className: 'transparent',
|
|
|
|
halign: 'fill',
|
|
|
|
style: 'margin: 5px',
|
|
|
|
vertical: false,
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
startWidget: Box({
|
|
|
|
halign: 'start',
|
|
|
|
children: [
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
OskToggle,
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Separator(12),
|
2023-09-06 17:36:26 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
TabletToggle,
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Separator(12),
|
2023-09-08 15:23:52 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
SysTray,
|
2023-09-08 15:23:52 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
AudioIndicator,
|
2023-09-08 15:15:04 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Separator(12),
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Brightness,
|
|
|
|
|
|
|
|
Separator(12),
|
|
|
|
|
|
|
|
Workspaces,
|
|
|
|
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
|
2023-10-07 20:41:24 -04:00
|
|
|
centerWidget: Box({
|
|
|
|
children: [
|
|
|
|
CurrentWindow,
|
|
|
|
],
|
|
|
|
}),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
|
|
|
endWidget: Box({
|
|
|
|
halign: 'end',
|
|
|
|
children: [
|
|
|
|
BatteryIndicator,
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Separator(12),
|
2023-09-06 17:36:26 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Clock,
|
2023-09-05 19:22:54 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Separator(12),
|
2023-09-05 19:22:54 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
NotifButton,
|
2023-09-05 15:10:25 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
Separator(12),
|
2023-09-05 15:10:25 -04:00
|
|
|
|
2023-09-18 16:14:11 -04:00
|
|
|
QsToggle,
|
|
|
|
],
|
|
|
|
}),
|
2023-09-08 14:14:10 -04:00
|
|
|
}),
|
2023-09-04 22:27:34 -04:00
|
|
|
}),
|
|
|
|
});
|