Skip to content
Browse files

line has it own color attribute

  • Loading branch information...
1 parent aa678fb commit 6a714b9a8d69bdb728ff3ce5978a82b8ec606e5b @Nic0 committed Dec 18, 2011
Showing with 3 additions and 4 deletions.
  1. +0 −2 src/tyrs/config.py
  2. +1 −0 src/tyrs/constant.py
  3. +2 −2 src/tyrs/widget.py
View
2 src/tyrs/config.py
@@ -53,8 +53,6 @@ def __init__(self, args):
def init_config(self):
self.token = constant.token
- self.colors = constant.colors
- self.color_set = constant.color_set
self.keys = constant.key
self.params = constant.params
self.filter = constant.filter
View
1 src/tyrs/constant.py
@@ -17,6 +17,7 @@
['body','dark blue', '', 'standout'],
['focus','dark red', '', 'standout'],
['header','light blue', ''],
+ ['line', 'light blue', ''],
['info_msg', 'dark green', ''],
['warn_msg', 'dark red', ''],
['current_tab', 'light blue', ''],
View
4 src/tyrs/widget.py
@@ -88,7 +88,7 @@ def __init__ (self, id, status):
self.status = status
status_content = urwid.Padding(
urwid.AttrWrap(urwid.Text(self.get_text(status)), 'body'), left=1, right=1)
- w = urwid.AttrWrap(TitleLineBox(status_content, title=self.get_header(status)), 'body', 'focus')
+ w = urwid.AttrWrap(TitleLineBox(status_content, title=self.get_header(status)), 'line', 'focus')
self.__super.__init__(w)
def selectable (self):
@@ -240,7 +240,7 @@ def use_attr( a, t ):
tline = use_attr( tline, urwid.Columns([
('fixed', 2, urwid.Divider(urwid.utf8decode(""))),
- ('fixed', len(title), urwid.Text([('header', title)])),
+ ('fixed', len(title), urwid.AttrWrap(urwid.Text(title), 'header')),
urwid.Divider(urwid.utf8decode(""))]))
bline = use_attr( bline, urwid.Divider(urwid.utf8decode("")))
lline = use_attr( lline, urwid.SolidFill(urwid.utf8decode("")))

0 comments on commit 6a714b9

Please sign in to comment.
Something went wrong with that request. Please try again.