Fix missing decor variable

main
felixm 2023-06-13 15:46:15 -04:00
parent c887d71407
commit eccc6eae1f
2 changed files with 7 additions and 9 deletions

View File

@ -141,7 +141,7 @@ screens = [
top=bar.Bar(
[
widget.Spacer(length=550),
widget.CurrentLayoutIcon(scale=0.55, **decor2),
widget.CurrentLayoutIcon(scale=0.55, **widgets.decor2),
widgets.window_tabs(),
widget.Spacer(),
],

View File

@ -10,6 +10,11 @@ decor = {
"padding": 4,
}
decor2 = {
"decorations": [RectDecoration(colour=SURFACE0, radius=4, filled=True, group=True)],
"padding": 4,
}
def window_tabs():
SEPARATOR = "**YQZ**"
@ -44,20 +49,13 @@ def window_tabs():
text = " | ".join(titles)
return text
decor = {
"decorations": [
RectDecoration(colour=SURFACE0, radius=4, filled=True, group=True)
],
"padding": 4,
}
return widget.WindowTabs(
markup=True,
separator=SEPARATOR,
foreground=SURFACE1,
selected=(SELECTED, SELECTED),
parse_text=parse_text,
**decor,
**decor2,
)