Skip to content

Commit

Permalink
top and bottom padding added
Browse files Browse the repository at this point in the history
  • Loading branch information
mnemonic101 committed Nov 22, 2020
1 parent 7f8f0a7 commit db8f445
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system-monitor@paradoxxx.zero.gmail.com/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -2365,8 +2365,10 @@ function enable() {
Main.panel._addToPanelBox('system-monitor', tray, 1, panel);

// The spacing adds a distance between the graphs/text on the top bar
let spacing = Schema.get_boolean('compact-display') ? '1' : '4';
let box = new St.BoxLayout({style: 'spacing: ' + spacing + 'px;'});
const hSpace = '2';
const paddingTopBottom = '8';
let spacing = Schema.get_boolean('compact-display') ? '1' : hSpace;
let box = new St.BoxLayout({style: 'padding: ' + paddingTopBottom + 'px 0; spacing: ' + spacing + 'px;'});
if (shell_Version < '3.36') {
tray.actor.add_actor(box);
} else {
Expand Down

0 comments on commit db8f445

Please sign in to comment.