mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-02 16:17:53 +00:00
fix: move badge colors to constants
This commit is contained in:
parent
190841ba74
commit
94f4b64c82
2 changed files with 30 additions and 30 deletions
|
@ -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",
|
||||
]
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue