Added the ability to enable borders for the bar. (#428)

* Added the ability to configure a border for the bar.

* Added the right color for configs
This commit is contained in:
Jas Singh
2024-11-03 02:09:13 -08:00
committed by GitHub
parent 16457ad641
commit 9287e1d6a4
49 changed files with 490 additions and 395 deletions

View File

@@ -38,6 +38,7 @@ import Window from 'types/widgets/window.js';
const { layouts } = options.bar;
const { location } = options.theme.bar;
const { location: borderLocation } = options.theme.bar.border;
export type BarWidget = keyof typeof widget;
@@ -270,7 +271,9 @@ export const Bar = (() => {
child: Widget.Box({
class_name: 'bar-panel-container',
child: Widget.CenterBox({
class_name: 'bar-panel',
class_name: borderLocation
.bind('value')
.as((brdrLcn) => (brdrLcn !== 'none' ? 'bar-panel withBorder' : 'bar-panel')),
css: 'padding: 1px',
startWidget: Widget.Box({
class_name: 'box-left',