2024-01-30 11:29:07 -05:00
|
|
|
const { Box, CenterBox, Window } = Widget;
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2024-01-17 19:18:41 -05:00
|
|
|
import Separator from '../misc/separator.ts';
|
2024-02-25 12:10:05 -05:00
|
|
|
|
2024-01-17 19:18:41 -05:00
|
|
|
import Clock from './items/clock.ts';
|
2024-02-25 12:10:05 -05:00
|
|
|
import NotifButton from './items/notif-button.ts';
|
|
|
|
import RazerStats from './items/razer-stats.ts';
|
|
|
|
import SysTray from './items/systray.ts';
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
const PADDING = 20;
|
|
|
|
|
|
|
|
|
2023-11-27 15:50:20 -05:00
|
|
|
export default () => Window({
|
|
|
|
name: 'bar',
|
|
|
|
layer: 'overlay',
|
|
|
|
exclusivity: 'exclusive',
|
|
|
|
anchor: ['bottom', 'left', 'right'],
|
|
|
|
monitor: 1,
|
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
child: Box({
|
|
|
|
vertical: true,
|
|
|
|
children: [
|
|
|
|
CenterBox({
|
2024-01-13 16:07:33 -05:00
|
|
|
class_name: 'bar',
|
2023-11-30 14:13:01 -05:00
|
|
|
start_widget: Box({
|
|
|
|
hpack: 'start',
|
|
|
|
children: [
|
|
|
|
Separator(PADDING),
|
2023-11-30 15:17:57 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
SysTray(),
|
2024-02-25 12:10:05 -05:00
|
|
|
|
|
|
|
Separator(PADDING / 2 / 2),
|
|
|
|
|
|
|
|
RazerStats(),
|
2023-11-30 14:13:01 -05:00
|
|
|
],
|
|
|
|
}),
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
center_widget: Box({
|
|
|
|
children: [],
|
|
|
|
}),
|
2023-11-27 15:50:20 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
end_widget: Box({
|
|
|
|
hpack: 'end',
|
|
|
|
children: [
|
|
|
|
NotifButton(),
|
2024-01-13 16:07:33 -05:00
|
|
|
Separator(PADDING / 2),
|
2023-11-30 14:13:01 -05:00
|
|
|
Clock(),
|
2023-11-30 15:17:57 -05:00
|
|
|
|
2023-11-30 14:13:01 -05:00
|
|
|
Separator(PADDING),
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
}),
|
2024-01-13 16:07:33 -05:00
|
|
|
Separator(PADDING, { vertical: true }),
|
2023-11-30 14:13:01 -05:00
|
|
|
],
|
2023-11-27 15:50:20 -05:00
|
|
|
}),
|
|
|
|
});
|