59 lines
1.1 KiB
JavaScript
59 lines
1.1 KiB
JavaScript
const { Window, CenterBox, Box } = ags.Widget;
|
|
|
|
import { Separator } from '../common.js';
|
|
import { CurrentWindow } from './current-window.js';
|
|
import { Workspaces } from './workspaces.js';
|
|
import { OskToggle } from './osk-toggle.js';
|
|
import { Heart } from './heart.js';
|
|
import { TabletToggle } from './tablet-toggle.js';
|
|
import { QsToggle } from './quick-settings.js';
|
|
|
|
export const Bar = Window({
|
|
name: 'left-bar',
|
|
layer: 'overlay',
|
|
anchor: 'top left right',
|
|
exclusive: true,
|
|
|
|
child: CenterBox({
|
|
className: 'transparent',
|
|
halign: 'fill',
|
|
style: 'margin-top: 5px; margin-left: 5px; margin-right: 5px',
|
|
vertical: false,
|
|
|
|
children: [
|
|
|
|
// Left
|
|
Box({
|
|
halign: 'start',
|
|
children: [
|
|
|
|
OskToggle,
|
|
|
|
Separator(12),
|
|
|
|
TabletToggle,
|
|
|
|
Separator(12),
|
|
|
|
Heart,
|
|
|
|
Separator(12),
|
|
|
|
Workspaces(),
|
|
|
|
],
|
|
}),
|
|
|
|
// Center
|
|
CurrentWindow,
|
|
|
|
// Right
|
|
Box({
|
|
halign: 'end',
|
|
children: [
|
|
QsToggle,
|
|
],
|
|
}),
|
|
],
|
|
}),
|
|
});
|