add groupPadding theme key, default 8px
This commit is contained in:
parent
852ba53092
commit
f4776cb307
3 changed files with 5 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ Item {
|
||||||
implicitWidth: row.implicitWidth + _pad * 2
|
implicitWidth: row.implicitWidth + _pad * 2
|
||||||
implicitHeight: M.Theme.barHeight - 3 - _pad
|
implicitHeight: M.Theme.barHeight - 3 - _pad
|
||||||
|
|
||||||
readonly property int _pad: 6
|
readonly property int _pad: M.Theme.groupPadding
|
||||||
property bool _hovered: false
|
property bool _hovered: false
|
||||||
|
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ QtObject {
|
||||||
property int barPadding: 8
|
property int barPadding: 8
|
||||||
property int moduleSpacing: 4
|
property int moduleSpacing: 4
|
||||||
property int groupSpacing: 6
|
property int groupSpacing: 6
|
||||||
|
property int groupPadding: 8
|
||||||
property int radius: 4
|
property int radius: 4
|
||||||
property int screenRadius: 15
|
property int screenRadius: 15
|
||||||
property bool _reducedMotionConfig: false
|
property bool _reducedMotionConfig: false
|
||||||
|
|
@ -73,6 +74,8 @@ QtObject {
|
||||||
root.moduleSpacing = data.moduleSpacing;
|
root.moduleSpacing = data.moduleSpacing;
|
||||||
if (data.groupSpacing !== undefined)
|
if (data.groupSpacing !== undefined)
|
||||||
root.groupSpacing = data.groupSpacing;
|
root.groupSpacing = data.groupSpacing;
|
||||||
|
if (data.groupPadding !== undefined)
|
||||||
|
root.groupPadding = data.groupPadding;
|
||||||
if (data.radius !== undefined)
|
if (data.radius !== undefined)
|
||||||
root.radius = data.radius;
|
root.radius = data.radius;
|
||||||
if (data.screenRadius !== undefined)
|
if (data.screenRadius !== undefined)
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ in
|
||||||
description = ''
|
description = ''
|
||||||
Theme overrides written to `$XDG_CONFIG_HOME/nova-shell/theme.json`.
|
Theme overrides written to `$XDG_CONFIG_HOME/nova-shell/theme.json`.
|
||||||
Keys: colors (base00-base0F), fontFamily, iconFontFamily, fontSize,
|
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.
|
Automatically populated from stylix when it is available.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue