@@ -204,10 +204,12 @@ var titleLabelCode = 'Label { \n\
204 horizontalAlignment: root.headerAlignment; \n\
204 horizontalAlignment: root.headerAlignment; \n\
207+// %1 is used as anchors of subtitleLabel
208+// %2 is used as color of subtitleLabel
207var subtitleLabelCode = 'Label { \n\
209var subtitleLabelCode = 'Label { \n\
208 id: subtitleLabel; \n\
210 id: subtitleLabel; \n\
209 objectName: "subtitleLabel"; \n\
211 objectName: "subtitleLabel"; \n\
210− %1 \n\
212+ anchors { %1 } \n\
211 elide: Text.ElideRight; \n\
213 elide: Text.ElideRight; \n\
212 fontSize: "small"; \n\
214 fontSize: "small"; \n\
213 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); \n\
215 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale); \n\
@@ -381,7 +383,7 @@ function cardString(template, components) {
381 if (hasMascot && hasSubtitle) {
383 if (hasMascot && hasSubtitle) {
382 // Using row + column
384 // Using row + column
383 titleAnchors = 'anchors { left: parent.left; right: parent.right }\n';
385 titleAnchors = 'anchors { left: parent.left; right: parent.right }\n';
384− subtitleAnchors = titleAnchors;
386+ subtitleAnchors = 'left: parent.left; right: parent.right';
385 } else if (hasMascot) {
387 } else if (hasMascot) {
386 // Using row + label
388 // Using row + label
387 titleAnchors = 'anchors.verticalCenter: parent.verticalCenter;\n'
389 titleAnchors = 'anchors.verticalCenter: parent.verticalCenter;\n'
@@ -399,11 +401,11 @@ function cardString(template, components) {
399 titleAnchors += headerLeftAnchor;
401 titleAnchors += headerLeftAnchor;
400 titleAnchors += headerVerticalAnchors;
402 titleAnchors += headerVerticalAnchors;
402− subtitleAnchors = 'anchors.left: titleLabel.left; \n\
404+ subtitleAnchors = 'left: titleLabel.left; \n\
403− anchors.leftMargin: titleLabel.leftMargin; \n\
405+ leftMargin: titleLabel.leftMargin; \n\
404− anchors.right: titleLabel.right; \n\
406+ right: titleLabel.right; \n\
405− anchors.top: titleLabel.bottom; \n\
407+ top: titleLabel.bottom; \n\
406− anchors.topMargin: units.dp(2);\n';
408+ topMargin: units.dp(2);\n';
409 var titleLabelVisibleExtra = (headerAsOverlay ? '&& overlayLoader.active': '');
411 var titleLabelVisibleExtra = (headerAsOverlay ? '&& overlayLoader.active': '');