[core/theme] Add prefix/postfix methods

Add a way to specify prefix and postfix strings to the full text of a
widget's text. Currently, the theme does not fill those yet.

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-08 11:31:20 +01:00
parent e6666becb3
commit 64f5fc100e
6 changed files with 73 additions and 6 deletions

View file

@ -1,13 +1,15 @@
#!/usr/bin/env python
import sys
import bumblebee.theme
import bumblebee.engine
import bumblebee.config
import bumblebee.output
def main():
config = bumblebee.config.Config(sys.argv[1:])
output = bumblebee.output.I3BarOutput()
theme = bumblebee.theme.Theme(config.theme())
output = bumblebee.output.I3BarOutput(theme=theme)
engine = bumblebee.engine.Engine(
config=config,
output=output,