[modules/traffic] Make traffic icons prefixes again

For consistent look, make the traffic icons prefixes, and change the
alignment to left again, in order to avoid "jumping" of the icons.
This commit is contained in:
Tobias Witek 2017-04-23 07:15:30 +02:00
parent 1a82a717fa
commit 30bdab2767
3 changed files with 6 additions and 8 deletions

View file

@ -56,13 +56,11 @@ class Module(bumblebee.engine.Module):
widget_tx = self.widget(txname) widget_tx = self.widget(txname)
if not widget_rx: if not widget_rx:
widget_rx = bumblebee.output.Widget(name=rxname) widget_rx = bumblebee.output.Widget(name=rxname)
widget_rx.set("theme.minwidth", "down 1000MB") widget_rx.set("theme.minwidth", "1000.00MB")
widget_rx.set("theme.align", "right")
widgets.append(widget_rx) widgets.append(widget_rx)
if not widget_tx: if not widget_tx:
widget_tx = bumblebee.output.Widget(name=txname) widget_tx = bumblebee.output.Widget(name=txname)
widget_tx.set("theme.minwidth", "down 1000MB") widget_tx.set("theme.minwidth", "1000.00MB")
widget_tx.set("theme.align", "right")
widgets.append(widget_tx) widgets.append(widget_tx)
prev_rx = widget_rx.get("rx", 0) prev_rx = widget_rx.get("rx", 0)

View file

@ -64,7 +64,7 @@
"prefix": "sensors" "prefix": "sensors"
}, },
"traffic": { "traffic": {
"rx": { "suffix": "down"}, "rx": { "prefix": "down"},
"tx": {"suffix": "up"} "tx": { "prefix": "up"}
} }
} }

View file

@ -80,7 +80,7 @@
"prefix": "🌡" "prefix": "🌡"
}, },
"traffic":{ "traffic":{
"rx": { "suffix": "" }, "rx": { "prefix": "" },
"tx": { "suffix": "" } "tx": { "prefix": "" }
} }
} }