HPage: fix header text vertical centering

This commit is contained in:
miruka 2019-11-10 08:58:47 -04:00
parent c0adf8353b
commit e3165d0a7c

View File

@ -50,21 +50,17 @@ SwipeView {
Behavior on height { HNumberAnimation {} } Behavior on height { HNumberAnimation {} }
visible: height > 0 visible: height > 0
HRowLayout { HLabel {
width: parent.width id: innerHeaderLabel
anchors.fill: parent
textFormat: Text.StyledText
font.pixelSize: theme.fontSize.big
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
HLabel { leftPadding: currentSpacing
id: innerHeaderLabel rightPadding: leftPadding
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
}
} }
} }