|
|
|
|
@ -685,6 +685,9 @@
|
|
|
|
|
focusedStyle_scale: currentComponent.focusedStyle_scale,
|
|
|
|
|
content: currentComponent.content,
|
|
|
|
|
};
|
|
|
|
|
if (!widget.content) {
|
|
|
|
|
widget.content = currentComponent.el.children[0].innerHTML;
|
|
|
|
|
}
|
|
|
|
|
if (currentComponent.type === 'image') {
|
|
|
|
|
widget.image = currentComponent.image;
|
|
|
|
|
} else if (currentComponent.type === 'text') {
|
|
|
|
|
@ -694,6 +697,7 @@
|
|
|
|
|
widget.text = currentComponent.text;
|
|
|
|
|
widget.fontWeight = currentComponent.fontWeight;
|
|
|
|
|
}
|
|
|
|
|
console.log(widget);
|
|
|
|
|
if (currentScreen === 'main') {
|
|
|
|
|
main.grid.addWidget(widget);
|
|
|
|
|
} else if (currentScreen === 'welcome') {
|
|
|
|
|
|