feat: add padding option for inactive workspace numbers (#702)

* feat: add padding option for inactive workspace number

* chore: reorder options to gather padding related options

---------

Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
Keon Lee
2025-01-16 07:12:21 +00:00
committed by GitHub
parent d49ae7d11d
commit 88609f7e4c
4 changed files with 9 additions and 1 deletions

View File

@@ -205,6 +205,12 @@ export const BarSettings = (): JSX.Element => {
subtitle="Only applicable if Workspace Numbers are enabled"
type="string"
/>
<Option
opt={options.theme.bar.buttons.workspaces.numbered_inactive_padding}
title="Inactive Padding"
subtitle="Only applicable if Workspace Numbers are enabled"
type="string"
/>
<Option
opt={options.theme.bar.buttons.workspaces.pill.radius}
title="Pill Radius"

View File

@@ -210,6 +210,7 @@ const options = mkOptions(CONFIG, {
hover: opt(colors.pink),
numbered_active_highlight_border: opt('0.2em'),
numbered_active_highlight_padding: opt('0.2em'),
numbered_inactive_padding: opt('0.2em'),
numbered_active_highlighted_text_color: opt(colors.mantle),
numbered_active_underline_color: opt(colors.pink),
spacing: opt('0.5em'),

View File

@@ -37,7 +37,7 @@
min-height: 0em;
border-radius: 0em;
transition: 0ms;
padding: 0em 0.2em;
padding: 0em $bar-buttons-workspaces-numbered_inactive_padding;
font-size: $bar-buttons-workspaces-fontSize;
}