summaryrefslogtreecommitdiff
path: root/src/util.py
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 01:59:07 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 01:59:07 +0000
commit83f2427f0d9378eb25c894648873738dea6a97a4 (patch)
tree9aea5ab584e96a7f02caf143d475c71d0475fca2 /src/util.py
parent169c42b7c4d9311030f027528e4b13307e1c4688 (diff)
merged updating and syncing
Diffstat (limited to 'src/util.py')
-rw-r--r--src/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.py b/src/util.py
index 3a9d3e8..647f211 100644
--- a/src/util.py
+++ b/src/util.py
@@ -6,8 +6,8 @@ import os
import hashlib
import tarfile
-DEFAULT_BAR_COLOR = colors.BLACK + colors.BG_CYAN
-DEFAULT_BAR_COLOR_RESET = colors.BG_BLACK + colors.CYAN
+DEFAULT_BAR_COLOR = colors.BLACK + colors.BG_WHITE
+DEFAULT_BAR_COLOR_RESET = colors.BG_BLACK + colors.WHITE
def extract_tar(package_path, destination):
cmd = f"tar -h --no-overwrite-dir -xvf {package_path} -C {destination}"
@@ -37,7 +37,7 @@ def loading_bar(completed, total, text,
spaces = columns - (len(count) + len(text))
info = text + "".join([" " for i in range(spaces)]) + count
- reset_at = int((completed/total)*len(info)) if total > 0 else 0
+ reset_at = int((completed/total)*len(info)) if total > 0 else len(info)
info = "".join([info[i] + (reset if i == reset_at else "") for i in range(len(info))])
print(color + info, end="\r")