2024-03-21 21:45:07 -04:00
|
|
|
const { CenterBox, Box } = Widget;
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2024-01-13 23:38:31 -05:00
|
|
|
import Separator from '../misc/separator.ts';
|
2023-11-21 01:29:46 -05:00
|
|
|
|
2024-01-13 23:38:31 -05:00
|
|
|
import Battery from './items/battery.ts';
|
2024-01-17 19:18:41 -05:00
|
|
|
import Clock from './items/cal-opener.ts';
|
2024-01-13 23:38:31 -05:00
|
|
|
import CurrentWindow from './items/current-window.ts';
|
|
|
|
import Heart from './items/heart.ts';
|
|
|
|
import NotifButton from './items/notif-button.ts';
|
|
|
|
import OskToggle from './items/osk-toggle.ts';
|
|
|
|
import QsToggle from './items/quick-settings.ts';
|
|
|
|
import SysTray from './items/systray.ts';
|
|
|
|
import TabletToggle from './items/tablet-toggle.ts';
|
|
|
|
import Workspaces from './items/workspaces.ts';
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
import BarRevealer from './fullscreen.ts';
|
2023-10-02 12:06:35 -04:00
|
|
|
|
2023-11-21 01:29:46 -05:00
|
|
|
const SPACING = 12;
|
|
|
|
|
2023-10-22 13:39:13 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
export default () => BarRevealer({
|
2023-10-20 23:11:21 -04:00
|
|
|
anchor: ['top', 'left', 'right'],
|
2023-11-15 15:11:55 -05:00
|
|
|
exclusivity: 'exclusive',
|
2024-03-21 21:45:07 -04:00
|
|
|
bar: CenterBox({
|
|
|
|
css: 'margin: 5px 5px 5px 5px',
|
|
|
|
class_name: 'bar',
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
start_widget: Box({
|
|
|
|
hpack: 'start',
|
|
|
|
children: [
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
OskToggle(),
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Separator(SPACING),
|
2023-09-06 17:36:26 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
TabletToggle(),
|
2023-09-04 22:27:34 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Separator(SPACING),
|
2023-09-08 15:23:52 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
SysTray(),
|
2023-09-08 15:23:52 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Workspaces(),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Separator(SPACING),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
CurrentWindow(),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
],
|
|
|
|
}),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
center_widget: Box({
|
|
|
|
children: [
|
|
|
|
Separator(SPACING),
|
2023-10-23 17:35:57 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Clock(),
|
2023-10-23 17:35:57 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Separator(SPACING),
|
|
|
|
],
|
|
|
|
}),
|
2023-09-18 16:14:11 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
end_widget: Box({
|
|
|
|
hpack: 'end',
|
|
|
|
children: [
|
|
|
|
Heart(),
|
2023-12-05 11:35:40 -05:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Separator(SPACING),
|
2023-12-05 11:35:40 -05:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Battery(),
|
2023-09-05 19:22:54 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Separator(SPACING),
|
2023-09-05 19:22:54 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
NotifButton(),
|
2023-09-05 15:10:25 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
Separator(SPACING),
|
2023-09-05 15:10:25 -04:00
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
QsToggle(),
|
|
|
|
],
|
2023-10-20 23:11:21 -04:00
|
|
|
}),
|
2023-09-08 14:14:10 -04:00
|
|
|
}),
|
2023-09-04 22:27:34 -04:00
|
|
|
});
|