diff --git a/modules/BarGroup.qml b/modules/BarGroup.qml index d790a66..3966dbb 100644 --- a/modules/BarGroup.qml +++ b/modules/BarGroup.qml @@ -30,7 +30,7 @@ Item { implicitWidth: row.implicitWidth + _pad * 2 implicitHeight: M.Theme.barHeight - 3 - _pad - readonly property int _pad: 6 + readonly property int _pad: M.Theme.groupPadding property bool _hovered: false HoverHandler { diff --git a/modules/Theme.qml b/modules/Theme.qml index 8da5f42..c806a10 100644 --- a/modules/Theme.qml +++ b/modules/Theme.qml @@ -33,6 +33,7 @@ QtObject { property int barPadding: 8 property int moduleSpacing: 4 property int groupSpacing: 6 + property int groupPadding: 8 property int radius: 4 property int screenRadius: 15 property bool _reducedMotionConfig: false @@ -73,6 +74,8 @@ QtObject { root.moduleSpacing = data.moduleSpacing; if (data.groupSpacing !== undefined) root.groupSpacing = data.groupSpacing; + if (data.groupPadding !== undefined) + root.groupPadding = data.groupPadding; if (data.radius !== undefined) root.radius = data.radius; if (data.screenRadius !== undefined) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index 8037027..c2cb1a1 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -187,7 +187,7 @@ in description = '' Theme overrides written to `$XDG_CONFIG_HOME/nova-shell/theme.json`. Keys: colors (base00-base0F), fontFamily, iconFontFamily, fontSize, - barOpacity, barHeight, barPadding, groupSpacing, moduleSpacing, radius, screenRadius. + barOpacity, barHeight, barPadding, groupSpacing, groupPadding, moduleSpacing, radius, screenRadius. Automatically populated from stylix when it is available. ''; };