- Reorganized [?] help layout

- Added a footer with common commands
- Changed author font to green
- Changed prompt background to inverted
This commit is contained in:
Michael Lazar
2016-08-12 00:34:11 -07:00
parent ab02edd008
commit 54352bcd84
6 changed files with 87 additions and 45 deletions

View File

@@ -19,6 +19,8 @@ class SubredditController(PageController):
class SubredditPage(Page):
FOOTER = docs.FOOTER_SUBREDDIT
def __init__(self, reddit, term, config, oauth, name):
"""
Params:
@@ -265,7 +267,7 @@ class SubredditPage(Page):
row = n_title + offset + 2
if row in valid_rows:
text = '{author}'.format(**data)
self.term.add_line(win, text, row, 1, curses.A_BOLD)
self.term.add_line(win, text, row, 1, Color.GREEN)
text = ' /r/{subreddit}'.format(**data)
self.term.add_line(win, text, attr=Color.YELLOW)
if data['flair']: