From e3165d0a7c57e6a55e58c83c6ef5503df4a3e289 Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 10 Nov 2019 08:58:47 -0400 Subject: [PATCH] HPage: fix header text vertical centering --- src/qml/Base/HPage.qml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/qml/Base/HPage.qml b/src/qml/Base/HPage.qml index 18f82b28..fc7cca6d 100644 --- a/src/qml/Base/HPage.qml +++ b/src/qml/Base/HPage.qml @@ -50,21 +50,17 @@ SwipeView { Behavior on height { HNumberAnimation {} } visible: height > 0 - HRowLayout { - width: parent.width + HLabel { + id: innerHeaderLabel + anchors.fill: parent + textFormat: Text.StyledText + font.pixelSize: theme.fontSize.big + elide: Text.ElideRight + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter - HLabel { - id: innerHeaderLabel - textFormat: Text.StyledText - font.pixelSize: theme.fontSize.big - elide: Text.ElideRight - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - - Layout.leftMargin: currentSpacing - Layout.rightMargin: Layout.leftMargin - Layout.fillWidth: true - } + leftPadding: currentSpacing + rightPadding: leftPadding } }