Add - again a very simplistic - method for themeing the output. Essentially, the plan is to have JSON-formatted configuration files in bumblebee/themes/ and have a separate class for querying the config whenever the output needs to know about semantic formatting/coloring. Note that the theme object is stored on a per-module basis. Right now, that doesn't have any effect (except looking particularly wasteful), but the idea is to be able to have different themes for different modules in the future.
9 lines
186 B
Python
9 lines
186 B
Python
|
|
class Module(object):
|
|
def __init__(self, theme):
|
|
self._theme = theme
|
|
|
|
def theme(self):
|
|
return self._theme
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|