Commit 639eadb0 authored by Vildravn's avatar Vildravn
Browse files

Center the not supported message

parent 32c1bd28
......@@ -136,9 +136,13 @@ async function createWidget(size) {
text.font = textStyles.lineWhite.font;
}
} else {
const text = widget.addText(`${size} widget is currently not supported.`);
const contentStack = widget.addStack();
contentStack.layoutHorizontally();
contentStack.addSpacer();
const text = contentStack.addText(`${size} widget is currently not supported.`);
text.textColor = textStyles.lineWhite.color;
text.font = textStyles.lineWhite.font;
contentStack.addSpacer();
}
return widget;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment