From e1babefc807d38472eeee98d8bf13f636abf5c04 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 10 May 2020 11:48:24 -0700 Subject: [PATCH] Center toolbar text --- app/gui/main.qml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/app/gui/main.qml b/app/gui/main.qml index a8d85a1e..0c977478 100644 --- a/app/gui/main.qml +++ b/app/gui/main.qml @@ -175,6 +175,16 @@ ApplicationWindow { anchors.topMargin: 5 anchors.bottomMargin: 5 + Label { + id: titleLabel + anchors.fill: parent + text: stackView.currentItem.objectName + font.pointSize: 20 + elide: Label.ElideRight + horizontalAlignment: Qt.AlignHCenter + verticalAlignment: Qt.AlignVCenter + } + RowLayout { spacing: 20 anchors.leftMargin: 10 @@ -195,12 +205,7 @@ ApplicationWindow { } Label { - id: titleLabel - text: stackView.currentItem.objectName - font.pointSize: 20 - elide: Label.ElideRight - horizontalAlignment: Qt.AlignHCenter - verticalAlignment: Qt.AlignVCenter + // Placeholder to consume all remaining width Layout.fillWidth: true }