feat(ags): make the separator width a variable

This commit is contained in:
matt1432 2023-09-04 20:01:02 -04:00
parent 3272376fd7
commit ec92f38272

View file

@ -3,8 +3,8 @@ const display = Gdk.Display.get_default();
import { CurrentWindow } from 'file:///home/matt/.nix/config/ags/current-window/current-window.js'; import { CurrentWindow } from 'file:///home/matt/.nix/config/ags/current-window/current-window.js';
import { Workspaces } from 'file:///home/matt/.nix/config/ags/workspaces/workspaces.js'; import { Workspaces } from 'file:///home/matt/.nix/config/ags/workspaces/workspaces.js';
const Separator = () => ags.Widget.Box({ const Separator = width => ags.Widget.Box({
style: 'min-width: 12px;', style: `min-width: ${width}px;`,
}); });
ags.Utils.subprocess( ags.Utils.subprocess(
@ -103,7 +103,7 @@ export const LeftBar = ags.Widget.Window({
OskToggle, OskToggle,
Separator(), Separator(12),
ags.Widget.EventBox({ ags.Widget.EventBox({
className: 'toggle-off', className: 'toggle-off',
@ -124,11 +124,11 @@ export const LeftBar = ags.Widget.Window({
}), }),
}), }),
Separator(), Separator(12),
HeartToggle, HeartToggle,
Separator(), Separator(12),
Workspaces(), Workspaces(),