Setting default theme from json

merge-requests/30/head
Bob Mottram 2022-04-05 12:29:06 +01:00
parent 0143c7c5a0
commit 972aa3e880
1 changed files with 24 additions and 18 deletions

View File

@ -575,6 +575,12 @@ def _set_theme_default(base_dir: str, allow_local_network_access: bool):
name = 'default'
_remove_theme(base_dir)
_set_theme_in_config(base_dir, name)
variables_file = base_dir + '/theme/' + name + '/theme.json'
if os.path.isfile(variables_file):
_read_variables_file(base_dir, name, variables_file,
allow_local_network_access)
else:
bg_params = {
"login": "jpg",
"follow": "jpg",