parent
e4604a8317
commit
cc8b8a5c31
2 changed files with 4 additions and 1 deletions
|
@ -459,7 +459,7 @@ class WidgetDrawer(object):
|
||||||
"color": self._theme.fg(widget),
|
"color": self._theme.fg(widget),
|
||||||
"background": self._theme.bg(widget),
|
"background": self._theme.bg(widget),
|
||||||
"separator_block_width": self._theme.separator_block_width(widget),
|
"separator_block_width": self._theme.separator_block_width(widget),
|
||||||
"separator": True if separator is None else False,
|
"separator": self._theme.default_separators(widget),
|
||||||
"min_width": None,
|
"min_width": None,
|
||||||
# "min_width": width + "A"*(len(self._prefix) + len(self._suffix)) if width else None,
|
# "min_width": width + "A"*(len(self._prefix) + len(self._suffix)) if width else None,
|
||||||
"align": self._theme.align(widget),
|
"align": self._theme.align(widget),
|
||||||
|
|
|
@ -176,6 +176,9 @@ class Theme(object):
|
||||||
"""Return the SBW"""
|
"""Return the SBW"""
|
||||||
return self._get(widget, "separator-block-width", None)
|
return self._get(widget, "separator-block-width", None)
|
||||||
|
|
||||||
|
def default_separators(self, widget):
|
||||||
|
return self._get(widget, "default-separators", False)
|
||||||
|
|
||||||
def _load_wal_colors(self):
|
def _load_wal_colors(self):
|
||||||
walfile = os.path.expanduser("~/.cache/wal/colors.json")
|
walfile = os.path.expanduser("~/.cache/wal/colors.json")
|
||||||
result = {}
|
result = {}
|
||||||
|
|
Loading…
Reference in a new issue