mirror of https://github.com/aristocratos/bpytop
➰ removes unnecessary loops
parent
11eb53dd59
commit
9e38b8fd58
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue