extract constants
This commit is contained in:
parent
bc3a85d18d
commit
b969f0824f
22 changed files with 106 additions and 63 deletions
|
|
@ -30,6 +30,10 @@ QtObject {
|
|||
property int fontSize: 12
|
||||
property real barOpacity: 0.9
|
||||
property int barHeight: 32
|
||||
property int barPadding: 8
|
||||
property int barSpacing: 12
|
||||
property int moduleSpacing: 4
|
||||
property int radius: 4
|
||||
|
||||
property FileView _themeFile: FileView {
|
||||
path: (Quickshell.env("XDG_CONFIG_HOME") || (Quickshell.env("HOME") + "/.config")) + "/nova-shell/theme.json"
|
||||
|
|
@ -60,5 +64,13 @@ QtObject {
|
|||
root.barOpacity = data.barOpacity;
|
||||
if (data.barHeight !== undefined)
|
||||
root.barHeight = data.barHeight;
|
||||
if (data.barPadding !== undefined)
|
||||
root.barPadding = data.barPadding;
|
||||
if (data.barSpacing !== undefined)
|
||||
root.barSpacing = data.barSpacing;
|
||||
if (data.moduleSpacing !== undefined)
|
||||
root.moduleSpacing = data.moduleSpacing;
|
||||
if (data.radius !== undefined)
|
||||
root.radius = data.radius;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue