From 9135b90ada009f9a9d9e9d29b3721ba462790b98 Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Fri, 16 Sep 2022 08:58:10 +0200 Subject: [PATCH] fix(StatusBaseButton): align text to horizontal center --- sandbox/controls/Buttons.qml | 5 +++++ src/StatusQ/Controls/StatusBaseButton.qml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sandbox/controls/Buttons.qml b/sandbox/controls/Buttons.qml index e88b56f4..239713a9 100644 --- a/sandbox/controls/Buttons.qml +++ b/sandbox/controls/Buttons.qml @@ -403,6 +403,11 @@ Column { asset.emoji: "🖼️️" } + StatusButton { + width: parent.width + text: "wide" + } + RowLayout { spacing: 20 diff --git a/src/StatusQ/Controls/StatusBaseButton.qml b/src/StatusQ/Controls/StatusBaseButton.qml index 07123b58..a8e73070 100644 --- a/src/StatusQ/Controls/StatusBaseButton.qml +++ b/src/StatusQ/Controls/StatusBaseButton.qml @@ -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