Fix missing decor variable
parent
c887d71407
commit
eccc6eae1f
|
@ -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(),
|
||||
],
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue