defs/ethereum: add check for icons, update icons
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 15 KiB |
BIN
defs/ethereum/mix.png
Normal file
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 15 KiB |
BIN
defs/ethereum/rbtc.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
defs/ethereum/reosc.png
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 11 KiB |
BIN
defs/ethereum/trbtc.png
Normal file
After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 9.7 KiB |
@ -176,6 +176,18 @@ def check_eth(coins):
|
||||
chain_name_str = "colliding chain name " + crayon(None, key, bold=True) + ":"
|
||||
print_log(logging.ERROR, chain_name_str, bucket_str)
|
||||
check_passed = False
|
||||
for coin in coins:
|
||||
icon_file = "defs/ethereum/%s.png" % coin["shortcut"].lower()
|
||||
try:
|
||||
icon = Image.open(icon_file)
|
||||
except Exception:
|
||||
print(coin["key"], ": failed to open icon file", icon_file)
|
||||
check_passed = False
|
||||
continue
|
||||
|
||||
if icon.size != (128, 128) or icon.mode != "RGBA":
|
||||
print(coin["key"], ": bad icon format (must be RGBA 128x128)")
|
||||
check_passed = False
|
||||
return check_passed
|
||||
|
||||
|
||||
|