nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit d1617d9fb29d7b89b059510367c2d2d21158989c
parent 4fd4f81d6e6f5d0da5d05dfcb885b60dce4679ad
Author: Eric Davis <edavis@insanum.com>
Date:   Sun,  6 Jul 2014 23:20:34 -0700

fixed help view focus highlighting

Diffstat:
Mconfig.py | 2+-
Mview_help.py | 12++++++------
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/config.py b/config.py @@ -85,7 +85,7 @@ def __init__(self): 'clr_note_content_focus_fg' : 'white', 'clr_note_content_focus_bg' : 'light red', 'clr_help_focus_fg' : 'white', - 'clr_help_focus_bg' : 'dark gray', + 'clr_help_focus_bg' : 'light red', 'clr_help_header_fg' : 'dark blue', 'clr_help_header_bg' : 'default', 'clr_help_config_fg' : 'dark green', diff --git a/view_help.py b/view_help.py @@ -48,7 +48,7 @@ def create_kb_help_lines(self, header, use): if use not in self.config.get_keybind_use(c): continue lines.append( - urwid.AttrMap( + urwid.AttrMap(urwid.AttrMap( urwid.Text( [ ('help_descr', '{:>24} '.format(self.config.get_keybind_descr(c))), @@ -62,7 +62,7 @@ def create_kb_help_lines(self, header, use): 'help_config' : 'help_focus', 'help_descr' : 'help_focus' } - )) + ), 'default', 'help_focus')) return lines def create_config_help_lines(self): @@ -75,7 +75,7 @@ def create_config_help_lines(self): for c in sorted(self.config.configs): if c in [ 'sn_username', 'sn_password' ]: continue lines.append( - urwid.AttrMap( + urwid.AttrMap(urwid.AttrMap( urwid.Text( [ ('help_descr', '{:>24} '.format(self.config.get_config_descr(c))), @@ -89,7 +89,7 @@ def create_config_help_lines(self): 'help_config' : 'help_focus', 'help_descr' : 'help_focus' } - )) + ), 'default', 'help_focus')) return lines def create_color_help_lines(self): @@ -104,7 +104,7 @@ def create_color_help_lines(self): fmap[re.search('^(.*)(_fg|_bg)$', c).group(1)] = 'help_focus' for c in sorted(self.config.colors): lines.append( - urwid.AttrMap( + urwid.AttrMap(urwid.AttrMap( urwid.Text( [ ('help_descr', '{:>24} '.format(self.config.get_color_descr(c))), @@ -115,7 +115,7 @@ def create_color_help_lines(self): ), attr_map = None, focus_map = fmap - )) + ), 'default', 'help_focus')) return lines def keypress(self, size, key):