2024-03-21 21:45:07 -04:00
|
|
|
const { Box, CenterBox } = 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-03-21 21:45:07 -04:00
|
|
|
import BarRevealer from './fullscreen.ts';
|
|
|
|
|
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;
|
|
|
|
|
2024-03-21 21:45:07 -04:00
|
|
|
export default () => BarRevealer({
|
|
|
|
monitor: 1,
|
2023-11-27 15:50:20 -05:00
|
|
|
exclusivity: 'exclusive',
|
|
|
|
anchor: ['bottom', 'left', 'right'],
|
2024-03-21 21:45:07 -04:00
|
|
|
bar: Box({
|
2023-11-30 14:13:01 -05:00
|
|
|
vertical: true,
|
|
|
|
children: [
|
|
|
|
CenterBox({
|
2024-01-13 16:07:33 -05:00
|
|
|
class_name: 'bar',
|
2024-03-21 21:45:07 -04:00
|
|
|
hexpand: true,
|
|
|
|
|
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
|
|
|
}),
|
|
|
|
});
|