make bar nicer

This commit is contained in:
zoe 2022-09-02 11:11:01 +02:00
parent 9b53fdd58d
commit aacce21e14
1 changed files with 4 additions and 10 deletions

View File

@ -109,8 +109,8 @@ _weather = widget.OpenWeather(
_tray = widget.Systray(
**get_defaults(),
background=_Accent.B.value,
foreground=my_globals.colors["on-bg-light"],
background=_Accent.A.value,
foreground=my_globals.colors["on-accent-light"],
)
_groups = widget.GroupBox(
@ -173,15 +173,8 @@ _mpris = widget.Mpris2(
],
)
_chord = widget.Chord(
background = _Accent.A,
foreground = my_globals.colors["on-accent-dark"],
)
def _get_bar_contents(primary=False):
l = [
_clock,
_get_powerline_arrow(_PowerLineDirection.LEFT, _Accent.A),
_get_current_layout(),
_groups,
@ -201,10 +194,11 @@ def _get_bar_contents(primary=False):
_volume,
_mpris,
_get_powerline_arrow(_PowerLineDirection.RIGHT, _Accent.A),
_clock,
_weather,
]
if primary:
l.insert(2, _tray)
l.insert(0, _tray)
else:
l = [_net, _netgraph, _cpu, _cpu_graph] + l
return l