From f4776cb3073c0b6f21d59d539e43c96549313485 Mon Sep 17 00:00:00 2001 From: Damocles Date: Thu, 16 Apr 2026 00:26:29 +0200 Subject: [PATCH] add groupPadding theme key, default 8px --- modules/BarGroup.qml | 2 +- modules/Theme.qml | 3 +++ nix/hm-module.nix | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) 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. ''; };