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)