create_badges.py: Changed to higher contrast colors (#33509)

Changed color badge - clearer difference
pull/33510/head
ugtthis 8 months ago committed by GitHub
parent c8465e3a21
commit b720fe1bfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/ui/translations/create_badges.py

@ -31,7 +31,7 @@ if __name__ == "__main__":
unfinished_translations += 1
percent_finished = int(100 - (unfinished_translations / total_translations * 100.))
color = "green" if percent_finished == 100 else "orange" if percent_finished > 90 else "red"
color = f"rgb{(94, 188, 0) if percent_finished == 100 else (248, 255, 50) if percent_finished > 90 else (204, 55, 27)}"
# Download badge
badge_label = f"LANGUAGE {name}"

Loading…
Cancel
Save