1
0

kivy: show status with color. show inflight attempts.

This commit is contained in:
ThomasV
2019-10-22 15:41:45 +02:00
parent cd86bec894
commit aac0fe9ae6
9 changed files with 66 additions and 36 deletions

View File

@@ -85,6 +85,15 @@ PR_PAID = 3 # send and propagated
PR_INFLIGHT = 4 # unconfirmed
PR_FAILED = 5
pr_color = {
PR_UNPAID: (.7, .7, .7, 1),
PR_PAID: (.2, .9, .2, 1),
PR_UNKNOWN: (.7, .7, .7, 1),
PR_EXPIRED: (.9, .2, .2, 1),
PR_INFLIGHT: (.9, .6, .3, 1),
PR_FAILED: (.9, .2, .2, 1),
}
pr_tooltips = {
PR_UNPAID:_('Pending'),
PR_PAID:_('Paid'),