mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Center toolbar text
This commit is contained in:
+11
-6
@@ -175,6 +175,16 @@ ApplicationWindow {
|
|||||||
anchors.topMargin: 5
|
anchors.topMargin: 5
|
||||||
anchors.bottomMargin: 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 {
|
RowLayout {
|
||||||
spacing: 20
|
spacing: 20
|
||||||
anchors.leftMargin: 10
|
anchors.leftMargin: 10
|
||||||
@@ -195,12 +205,7 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
id: titleLabel
|
// Placeholder to consume all remaining width
|
||||||
text: stackView.currentItem.objectName
|
|
||||||
font.pointSize: 20
|
|
||||||
elide: Label.ElideRight
|
|
||||||
horizontalAlignment: Qt.AlignHCenter
|
|
||||||
verticalAlignment: Qt.AlignVCenter
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user