changed some spacing

This commit is contained in:
Justin 2023-03-30 18:33:05 +08:00 committed by GitHub
parent d9bcdcbf04
commit c8284e6f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2195,10 +2195,10 @@ class StockTicker():
prepost_img = Image.new('RGB', (max(premkt_img.size[0] + prepercent_img.size[0], preprice_img.size[0] + 2 + prechange_img.size[0] + arrow.size[0]) + 10, 16))
prepost_img.paste(premkt_img, (0,0))
prepost_img.paste(prepercent_img, (premkt_img.size[0], 0))
prepost_img.paste(preprice_img,(0,8))
prepost_img.paste(preprice_img,(0,7))
# prepost_img.paste(time_img, (preprice_img.size[0] + prechange_img.size[0] + 2 + arrow.size[0], 8))
prepost_img.paste(arrow, (preprice_img.size[0],11))
prepost_img.paste(prechange_img, (preprice_img.size[0] + arrow.size[0] + 2,8))
prepost_img.paste(arrow, (preprice_img.size[0],10))
prepost_img.paste(prechange_img, (preprice_img.size[0] + arrow.size[0] + 2,7))
except:
pass
@ -2224,10 +2224,10 @@ class StockTicker():
prepost_img = Image.new('RGB', (10 + max(postmkt_img.size[0] + postpercent_img.size[0], postprice_img.size[0] + 2 + postchange_img.size[0] + arrow.size[0]) , 16))
prepost_img.paste(postmkt_img, (0,0))
prepost_img.paste(postpercent_img, (postmkt_img.size[0], 0))
prepost_img.paste(postprice_img,(0,8))
prepost_img.paste(postprice_img,(0,7))
#prepost_img.paste(time_img, (0, 12))
prepost_img.paste(arrow, (postprice_img.size[0],11))
prepost_img.paste(postchange_img, (postprice_img.size[0] + arrow.size[0] + 2,8))
prepost_img.paste(arrow, (postprice_img.size[0],10))
prepost_img.paste(postchange_img, (postprice_img.size[0] + arrow.size[0] + 2,7))
except:
pass