First steps for a decent custom theme generator

This commit is contained in:
Pieter Vander Vennet 2020-08-31 02:59:47 +02:00
parent a57b7d93fa
commit 2052976909
82 changed files with 1880 additions and 1311 deletions

View file

@ -201,8 +201,15 @@ export class State {
continue;
}
try {
const layout = FromJSON.FromBase64(customLayout.data);
if(layout.id === undefined){
// This is an old style theme
// We remove it
customLayout.setData(undefined);
continue;
}
installedThemes.push({
layout: FromJSON.FromBase64(customLayout.data),
layout: layout,
definition: customLayout.data
});
} catch (e) {