Replace the popup scroll bar with a red '#' for visibility

This commit is contained in:
Asmageddon 2012-05-29 19:18:18 +02:00
parent f6d87c7a7e
commit 0df1255ae5
2 changed files with 2 additions and 3 deletions

View file

@ -874,8 +874,7 @@ class InputPopup(Popup):
sb_pos = int((self.height-2)*perc_sc)+1
if (sb_pos == 1) and (self.lineoff != 0):
sb_pos += 1
self.add_string(sb_pos, "{!white,black,bold!}|",self.screen,col=(self.width-1),pad=False,trim=False)
self.add_string(sb_pos, "{!red,black,bold!}#",self.screen,col=(self.width-1),pad=False,trim=False)
if self._cursor_row >= 0:
curses.curs_set(2)
self.screen.move(self._cursor_row,self._cursor_col)

View file

@ -114,7 +114,7 @@ class Popup:
sb_pos = int((self.height-2)*perc_sc)+1
if (sb_pos == 1) and (self.lineoff != 0):
sb_pos += 1
self.parent.add_string(sb_pos, "{!white,black,bold!}|",self.screen,col=(self.width-1),pad=False,trim=False)
self.parent.add_string(sb_pos, "{!red,black,bold!}#",self.screen,col=(self.width-1),pad=False,trim=False)
self.screen.redrawwin()
self.screen.noutrefresh()