mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
@@ -54,9 +54,11 @@ class ProgressBar(WindowWrapper):
|
||||
self._win.chgat(
|
||||
0,
|
||||
0,
|
||||
curses.color_pair(COLOR_PROGRESSBAR)
|
||||
if has_colors()
|
||||
else curses.A_REVERSE,
|
||||
(
|
||||
curses.color_pair(COLOR_PROGRESSBAR)
|
||||
if has_colors()
|
||||
else curses.A_REVERSE
|
||||
),
|
||||
)
|
||||
if x < self.getmaxyx()[1]:
|
||||
self._win.chgat(0, x, curses.A_NORMAL)
|
||||
|
||||
@@ -91,9 +91,11 @@ class Scrollable(WindowWrapper):
|
||||
self._win.chgat(
|
||||
win_y,
|
||||
w - 1,
|
||||
attr_thumb
|
||||
if thumb_y1 <= win_y <= thumb_y2
|
||||
else attr_track,
|
||||
(
|
||||
attr_thumb
|
||||
if thumb_y1 <= win_y <= thumb_y2
|
||||
else attr_track
|
||||
),
|
||||
)
|
||||
self._win.noutrefresh()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user