removes unnecessary loops

pull/162/head
David Perez-Suarez 2020-10-24 18:29:37 +01:00
parent 11eb53dd59
commit 9e38b8fd58
1 changed files with 3 additions and 5 deletions

View File

@ -48,8 +48,7 @@ else: SYSTEM = "Other"
if errors: if errors:
print("ERROR!") print("ERROR!")
for error in errors: print("\n".join(errors))
print(error)
if SYSTEM == "Other": if SYSTEM == "Other":
print("\nUnsupported platform!\n") print("\nUnsupported platform!\n")
else: else:
@ -1177,8 +1176,7 @@ class Theme:
else: else:
c = Color.fg(*rgb["start"]) c = Color.fg(*rgb["start"])
for _ in range(101): self.gradient[name] += [c] * 101
self.gradient[name] += [c]
#* Set terminal colors #* Set terminal colors
Term.fg = self.main_fg Term.fg = self.main_fg
Term.bg = self.main_bg if CONFIG.theme_background else "\033[49m" Term.bg = self.main_bg if CONFIG.theme_background else "\033[49m"