fix(StatusBaseButton): align text to horizontal center

This commit is contained in:
Patryk Osmaczko 2022-09-16 08:58:10 +02:00 committed by Michał Cieślak
parent 07a8d91ce5
commit d707bceb14
2 changed files with 6 additions and 1 deletions

View File

@ -403,6 +403,11 @@ Column {
asset.emoji: "🖼️️"
}
StatusButton {
width: parent.width
text: "wide"
}
RowLayout {
spacing: 20

View File

@ -96,7 +96,7 @@ Button {
emojiId: Emoji.iconId(root.asset.emoji, root.asset.emojiSize) || ""
}
StatusBaseText {
Layout.alignment: Qt.AlignVCenter
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
opacity: !loading
font: root.font
text: root.text