fix card badges to have better rarity visibility and other bugfixes
This commit is contained in:
parent
37d8bd5981
commit
262f0ea190
14 changed files with 4515 additions and 1255 deletions
|
|
@ -45,5 +45,7 @@ def update_card_style(sender, instance, action, **kwargs):
|
|||
else:
|
||||
instance.style = "background: linear-gradient(to right, #AAAAAA, #AAAAAA, #AAAAAA);"
|
||||
if not color_is_dark(decks.first().hex_color):
|
||||
instance.style += "color: var(--color-gray-700);"
|
||||
instance.style += "color: var(--color-gray-700); text-shadow: 0 0 0 var(--color-gray-700);"
|
||||
else:
|
||||
instance.style += "text-shadow: 0 0 0 #fff;"
|
||||
instance.save(update_fields=["style"])
|
||||
Loading…
Add table
Add a link
Reference in a new issue