fix: move badge colors to constants

This commit is contained in:
0xMRTT 2022-09-16 08:25:51 +02:00
parent 190841ba74
commit 94f4b64c82
No known key found for this signature in database
GPG key ID: AC9E06BF3DECB6FB
2 changed files with 30 additions and 30 deletions

View file

@ -28,3 +28,32 @@ help_url = '@HELP_URL@'
translate_url = '@TRANSLATE_URL@'
pkgdatadir = '@PKGDATA_DIR@'
localedir = '@LOCALE_DIR@'
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",
]

View file

@ -35,36 +35,7 @@ from .constants import rootdir
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",
]
from constants import BADGE_COLORS
@Gtk.Template(resource_path=f"{rootdir}/ui/presets_manager_window.ui")
class GradiencePresetWindow(Adw.Window):