Added the ability to change bar locations. (#257)

* Added the ability to change bar locations.

* Update dropdown margins

* Make dropdown to bar gap configurable and organized code.
This commit is contained in:
Jas Singh
2024-09-14 23:29:00 -07:00
committed by GitHub
parent 4238a5516e
commit 8c2537b917
21 changed files with 420 additions and 367 deletions

View File

@@ -12,6 +12,7 @@ import { KbIcon, KbLabelType } from 'lib/types/customModules/kbLayout';
import {
ActiveWsIndicator,
BarButtonStyles,
BarLocation,
NotificationAnchor,
OSDAnchor,
OSDOrientation,
@@ -145,6 +146,7 @@ const options = mkOptions(OPTIONS, {
bar: {
scaling: opt(100),
floating: opt(false),
location: opt<BarLocation>('top'),
layer: opt<WindowLayer>('top'),
margin_top: opt('0.5em'),
opacity: opt(100),
@@ -154,6 +156,7 @@ const options = mkOptions(OPTIONS, {
outer_spacing: opt('1.6em'),
label_spacing: opt('0.5em'),
transparent: opt(false),
dropdownGap: opt('2.9em'),
background: opt(colors.crust),
buttons: {
style: opt<BarButtonStyles>('default'),