[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:
parent
527489e0de
commit
c1f1e1a939
6 changed files with 66 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue