[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:
parent
1a82a717fa
commit
30bdab2767
3 changed files with 6 additions and 8 deletions
|
@ -56,13 +56,11 @@ class Module(bumblebee.engine.Module):
|
|||
widget_tx = self.widget(txname)
|
||||
if not widget_rx:
|
||||
widget_rx = bumblebee.output.Widget(name=rxname)
|
||||
widget_rx.set("theme.minwidth", "down 1000MB")
|
||||
widget_rx.set("theme.align", "right")
|
||||
widget_rx.set("theme.minwidth", "1000.00MB")
|
||||
widgets.append(widget_rx)
|
||||
if not widget_tx:
|
||||
widget_tx = bumblebee.output.Widget(name=txname)
|
||||
widget_tx.set("theme.minwidth", "down 1000MB")
|
||||
widget_tx.set("theme.align", "right")
|
||||
widget_tx.set("theme.minwidth", "1000.00MB")
|
||||
widgets.append(widget_tx)
|
||||
|
||||
prev_rx = widget_rx.get("rx", 0)
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
"prefix": "sensors"
|
||||
},
|
||||
"traffic": {
|
||||
"rx": { "suffix": "down"},
|
||||
"tx": {"suffix": "up"}
|
||||
"rx": { "prefix": "down"},
|
||||
"tx": { "prefix": "up"}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
"prefix": "🌡"
|
||||
},
|
||||
"traffic":{
|
||||
"rx": { "suffix": "" },
|
||||
"tx": { "suffix": "" }
|
||||
"rx": { "prefix": "" },
|
||||
"tx": { "prefix": "" }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue