Added font-boldness option and moved fonts to extra folder

This commit is contained in:
Maximilian Giller 2019-03-10 15:37:10 +01:00
parent 14ca6e9cdf
commit 9c5a791019
10 changed files with 12 additions and 1 deletions

View file

@ -7,6 +7,7 @@ im_open = Image.open
path = '' path = ''
wpath = path+'weather-icons/' wpath = path+'weather-icons/'
opath = path+'other/' opath = path+'other/'
fpath = path+'fonts/'
tempicon = im_open(opath+'temperature.jpeg') tempicon = im_open(opath+'temperature.jpeg')
humicon = im_open(opath+'humidity.jpeg') humicon = im_open(opath+'humidity.jpeg')
@ -15,7 +16,16 @@ sunriseicon = im_open(opath+'wi-sunrise.jpeg')
sunseticon = im_open(opath+'wi-sunset.jpeg') sunseticon = im_open(opath+'wi-sunset.jpeg')
windicon = im_open(opath+'wi-strong-wind.jpeg') windicon = im_open(opath+'wi-strong-wind.jpeg')
defaultfont = "Assistant-SemiBold.otf" fonts = {
"extralight" : "Assistant-ExtraLight.otf",
"light" : "Assistant-Light.otf",
"regular" : "Assistant-Regular.otf",
"semibold" : "Assistant-SemiBold.otf",
"bold" : "Assistant-Bold.otf",
"extrabold" : "Assistant-ExtraBold.otf"
}
defaultfont = fpath + fonts[font_boldness]
datetime_locals = { datetime_locals = {
"de" : "de_DE.UTF-8", "de" : "de_DE.UTF-8",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -19,6 +19,7 @@ hours = "24"
"""DESIGN""" """DESIGN"""
font_boldness = "semibold" # extralight, light, regular, semibold, bold, extrabold
choosen_design = "month-overview" # month-overview, day-list choosen_design = "month-overview" # month-overview, day-list
general_settings = { # General settings that designs may use general_settings = { # General settings that designs may use
"info-area" : "rss", # empty, events, rss "info-area" : "rss", # empty, events, rss