mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-09-13 08:02:32 +00:00
Format code with black and autopep8
This commit fixes the style issues introduced in 5526b56
according to the output
from black and autopep8.
Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/ba0e5265-4c86-46d4-8d74-32023154f0ae/
This commit is contained in:
parent
5526b56733
commit
d7c456d642
1 changed files with 33 additions and 2 deletions
|
@ -35,7 +35,36 @@ from .constants import rootdir
|
||||||
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
BADGE_COLORS = ["blue", "green", "orange", "purple", "red", "yellow", "black", "white", "brown", "pink", "gray", "silver", "gold", "copper", "bronze", "iron", "steel", "tin", "aluminium", "cobalt", "titanium", "platinium", "lead", "mercury", "uranium", "antimony", "arsenic"]
|
BADGE_COLORS = [
|
||||||
|
"blue",
|
||||||
|
"green",
|
||||||
|
"orange",
|
||||||
|
"purple",
|
||||||
|
"red",
|
||||||
|
"yellow",
|
||||||
|
"black",
|
||||||
|
"white",
|
||||||
|
"brown",
|
||||||
|
"pink",
|
||||||
|
"gray",
|
||||||
|
"silver",
|
||||||
|
"gold",
|
||||||
|
"copper",
|
||||||
|
"bronze",
|
||||||
|
"iron",
|
||||||
|
"steel",
|
||||||
|
"tin",
|
||||||
|
"aluminium",
|
||||||
|
"cobalt",
|
||||||
|
"titanium",
|
||||||
|
"platinium",
|
||||||
|
"lead",
|
||||||
|
"mercury",
|
||||||
|
"uranium",
|
||||||
|
"antimony",
|
||||||
|
"arsenic",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
@Gtk.Template(resource_path=f"{rootdir}/ui/presets_manager_window.ui")
|
@Gtk.Template(resource_path=f"{rootdir}/ui/presets_manager_window.ui")
|
||||||
class GradiencePresetWindow(Adw.Window):
|
class GradiencePresetWindow(Adw.Window):
|
||||||
|
@ -154,7 +183,9 @@ class GradiencePresetWindow(Adw.Window):
|
||||||
for repo_name, repo in self._repos.items():
|
for repo_name, repo in self._repos.items():
|
||||||
self.search_string_list.append(repo_name)
|
self.search_string_list.append(repo_name)
|
||||||
badge_color = random.choice(BADGE_COLORS)
|
badge_color = random.choice(BADGE_COLORS)
|
||||||
buglog(f"Selected badge color: {badge_color} if it's look bad, please report it")
|
buglog(
|
||||||
|
f"Selected badge color: {badge_color} if it's look bad, please report it"
|
||||||
|
)
|
||||||
fetch(repo_name=repo_name, repo=repo, badge=badge_color)
|
fetch(repo_name=repo_name, repo=repo, badge=badge_color)
|
||||||
|
|
||||||
if offline:
|
if offline:
|
||||||
|
|
Loading…
Reference in a new issue