[core/themes] Add separator customization

Add customized separators:
* The default separators are automatically disabled if custom separators
  are used (to "just" disable the default, use empty custom separators)
* Use previous background color as their background color and the
  current background color as foreground color
* Allow the separator-block-width to be configured

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-09 12:55:16 +01:00
parent 527489e0de
commit c1f1e1a939
6 changed files with 66 additions and 5 deletions

View file

@ -45,10 +45,18 @@ class MockTheme(object):
self.attr_suffix = None
self.attr_fg = None
self.attr_bg = None
self.attr_separator = None
self.attr_separator_block_width = 0
def reset(self):
pass
def separator_block_width(self, widget):
return self.attr_separator_block_width
def separator(self, widget):
return self.attr_separator
def prefix(self, widget):
return self.attr_prefix