change postpre mkt text from yellow to white

This commit is contained in:
Justin 2023-03-31 17:40:49 +08:00 committed by GitHub
parent af585ff7c3
commit d7d853b44a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1923,7 +1923,7 @@ class StockTicker():
prechange = '%.2f' % abs(float(prepost_settings[symbol]['Pre-market']['prechange']))
prepercent = '%.2f' % abs(float(prepost_settings[symbol]['Pre-market']['prepercent']))
premkt_img = self.textImage('Pre-Mkt', font, r=255, g=255, b=0)
premkt_img = self.textImage('Pre-Mkt', font, r=255, g=255, b=255)
if '-' in prepost_settings[symbol]['Pre-market']['prechange']:
preprice_img = self.textImage(preprice, font, r = 255, g = 0 , b = 0)
prechange_img = self.textImage(prechange, font, r = 255, g = 0, b = 0)
@ -1957,7 +1957,7 @@ class StockTicker():
postchange = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postchange']))
postpercent = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postpercent']))
postmkt_img = self.textImage('After-Hrs', font, r=255, g=255, b=0)
postmkt_img = self.textImage('After-Hrs', font, r=255, g=255, b=255)
if '-' in prepost_settings[symbol]['Post-market']['postchange']:
postprice_img = self.textImage(postprice, font, r = 255, g = 0, b = 0)
postchange_img = self.textImage(postchange, font, r = 255, g = 0, b = 0)
@ -2190,7 +2190,7 @@ class StockTicker():
prechange = '%.2f' % abs(float(prepost_settings[symbol]['Pre-market']['prechange']))
prepercent = '%.2f' % abs(float(prepost_settings[symbol]['Pre-market']['prepercent']))
premkt_img = self.textImage('Pre-Mkt', font, r=255, g=255, b=0)
premkt_img = self.textImage('Pre-Mkt', font, r=255, g=255, b=255)
if '-' in prepost_settings[symbol]['Pre-market']['prechange']:
preprice_img = self.textImage(preprice, font, r = 255, g = 0 , b = 0)
prechange_img = self.textImage(prechange, font, r = 255, g = 0, b = 0)
@ -2223,7 +2223,7 @@ class StockTicker():
postchange = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postchange']))
postpercent = '%.2f' % abs(float(prepost_settings[symbol]['Post-market']['postpercent']))
postmkt_img = self.textImage('After-Hrs', font, r=255, g=255, b=0)
postmkt_img = self.textImage('After-Hrs', font, r=255, g=255, b=255)
if '-' in prepost_settings[symbol]['Post-market']['postchange']:
postprice_img = self.textImage(postprice, font, r = 255, g = 0, b = 0)
postchange_img = self.textImage(postchange, font, r = 255, g = 0, b = 0)