Skip to content

Commit

Permalink
PowerLineDecoration check current background
Browse files Browse the repository at this point in the history
  • Loading branch information
elParaguayo committed Oct 14, 2024
1 parent a29446e commit 5120de7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qtile_extras/widget/decorations.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,11 +674,12 @@ def _configure(self, parent):
else:
raise ConfigError(f"Unexpected value for PowerLineDecoration `path`: {self.path}.")

self.parent_background = (
self.override_colour or self.parent.background or self.parent.bar.background
)
self.next_background = self.override_next_colour or self.set_next_colour()

@property
def parent_background(self):
return self.override_colour or self.parent.background or self.parent.bar.background

def set_next_colour(self):
try:
index = self.parent.bar.widgets.index(self.parent)
Expand Down

0 comments on commit 5120de7

Please sign in to comment.