in wallboard-import.py [0:0]
def UpdateSettings(Config, Settings):
if "Defaults" in Config:
Defaults = Config["Defaults"]
if "TextColour" in Defaults: Settings["TextColour"] = {"S":Defaults["TextColour"]}
if "TextColor" in Defaults: Settings["TextColour"] = {"S":Defaults["TextColor"]}
if "BackgroundColour" in Defaults: Settings["BackgroundColour"] = {"S":Defaults["BackgroundColour"]}
if "BackgroundColor" in Defaults: Settings["BackgroundColour"] = {"S":Defaults["BackgroundColor"]}
if "TextSize" in Defaults: Settings["TextSize"] = {"S":str(Defaults["TextSize"])}
if "Font" in Defaults: Settings["Font"] = {"S":Defaults["Font"]}
if "WarningBackgroundColour" in Defaults: Settings["WarningBackgroundColour"] = {"S":Defaults["WarningBackgroundColour"]}
if "WarningBackgroundColor" in Defaults: Settings["WarningBackgroundColour"] = {"S":Defaults["WarningBackgroundColor"]}
if "AlertBackgroundColour" in Defaults: Settings["AlertBackgroundColour"] = {"S":Defaults["AlertBackgroundColour"]}
if "AlertBackgroundColor" in Defaults: Settings["AlertBackgroundColour"] = {"S":Defaults["AlertBackgroundColor"]}