Always center button text (for now)

This commit is contained in:
miruka 2019-07-16 04:41:26 -04:00
parent aef777d853
commit 6ae37dc31f
3 changed files with 2 additions and 8 deletions

View File

@ -5,7 +5,6 @@
- Account delegate name color
- If avatar is set, name color from average color?
- normalSpacing in Theme
- Qt.AlignCenter instead of V | H
- banner button repair
- Wrong avatar for group rooms
- Make sure to not cache user images and that sourceSize is set everywhere
@ -13,7 +12,6 @@
downloading is implemented
- HTextField focus effect
- Button can get "hoverEnabled: false" to let HoverHandlers work
- Center account box buttons
- Handle TimeoutError for all kind of async requests (nio)
- Handle thumbnail response status 400
- "Loading..." if going to edit account page while it's loading

View File

@ -15,7 +15,6 @@ HBaseButton {
property var iconTransform: null
property int fontSize: theme.fontSize.normal
property bool centerText: Boolean(iconName)
property bool loading: false
@ -49,8 +48,7 @@ HBaseButton {
HLabel {
text: button.text
font.pixelSize: fontSize
horizontalAlignment: button.centerText ?
Text.AlignHCenter : Text.AlignLeft
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
color: enabled ?
theme.colors.foreground : theme.colors.foregroundDim2
@ -66,7 +64,7 @@ HBaseButton {
HIcon {
svgName: "hourglass"
Layout.preferredWidth: contentWidth || -1
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.alignment: Qt.AlignCenter
}
}
}

View File

@ -134,7 +134,6 @@ HGridLayout {
id: saveButton
iconName: "save"
text: qsTr("Save")
centerText: false
loading: nameChangeRunning || avatarChangeRunning
enabled: nameField.changed || avatar.changed
@ -147,7 +146,6 @@ HGridLayout {
HUIButton {
iconName: "cancel"
text: qsTr("Cancel")
centerText: false
Layout.fillWidth: true
Layout.alignment: Qt.AlignBottom