misc: use xdg-base-dirs

Resolves #26
This commit is contained in:
Marcin Kurczewski
2024-05-04 12:18:07 +02:00
parent 9eaf4397df
commit 07cae1a4e8
7 changed files with 220 additions and 193 deletions
+5 -3
View File
@@ -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)
+5 -3
View File
@@ -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()