From c613876f0e2ade76eebf72e465f877929d1edcee Mon Sep 17 00:00:00 2001 From: Ace Date: Mon, 24 Dec 2018 21:19:47 +0100 Subject: [PATCH] Added new features for release 1.4 --- Calendar/icon_positions_locations.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/Calendar/icon_positions_locations.py b/Calendar/icon_positions_locations.py index 9b93fd6..8328f13 100644 --- a/Calendar/icon_positions_locations.py +++ b/Calendar/icon_positions_locations.py @@ -11,22 +11,28 @@ dpath = path+'days/' opath = path+'other/'+language+'/' font = ImageFont.truetype(path+'Assistant-Bold.ttf', 18) -weekday = open(opath+'weekday.bmp') -eventicon = open(opath+'event.bmp') -dateicon = open(opath+'today.bmp') -tempicon = open(opath+'temp-icon.bmp') -humicon = open(opath+'hum-icon.bmp') -weekmon = open(opath+'week-mon.bmp') -weeksun = open(opath+'week-sun.bmp') -seperator = open(opath+'seperator.bmp') -no_response= open(opath+'cloud-no-response.bmp') +weekday = open(opath+'weekday.bmp') +eventicon = open(opath+'event.bmp') +dateicon = open(opath+'today.bmp') +tempicon = open(opath+'temp-icon.bmp') +humicon = open(opath+'hum-icon.bmp') +weekmon = open(opath+'week-mon.bmp') +weeksun = open(opath+'week-sun.bmp') +seperator = open(opath+'seperator.bmp') +no_response= open(opath+'cloud-no-response.bmp').convert('L') +sunriseicon = open(wpath+'wi-sunrise.bmp').convert('L') +sunseticon = open(wpath+'wi-sunset.bmp').convert('1') +windicon = open(wpath+'wi-strong-wind.bmp').convert('L') -wiconplace = (570, 219) +wiconplace = (570, 0) tempplace = (605, 310) humplace = (572, 308) monthplace = (443, 0) weekplace = (415,0) seperatorplace = (555, 0) +windiconspace = (605, 100) +sunriseplace = (605,210) +sunsetplace = (570,210) weekdaysmon = {'Mon': (416,3), 'Tue': (416,57), 'Wed': (416,111), 'Thu': (416,165), 'Fri': (416,219), 'Sat': (416,273), 'Sun':(416,327)} weekdayssun = {'Sun': (416,3), 'Mon': (416,57), 'Tue': (416,111), 'Wed': (416,165), 'Thu': (416,219), 'Fri': (416,273), 'Sat':(416,327)}