fix button alignment

This commit is contained in:
Gaelle Braud 2024-10-15 16:46:24 +02:00
parent 9cf975518f
commit c1be71191a
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,7 @@ Control.Button {
property bool inversedColors: false
property int textSize: 18 * DefaultStyle.dp
property int textWeight: 600 * DefaultStyle.dp
property var textHAlignment: Text.AlignHCenter
property int radius: 48 * DefaultStyle.dp
property color textColor: DefaultStyle.grey_0
property bool underline: activeFocus || containsMouse
@ -78,7 +79,7 @@ Control.Button {
}
component ButtonText: Text {
horizontalAlignment: Text.AlignHCenter
horizontalAlignment: mainItem.textHAlignment
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WrapAnywhere
text: mainItem.text

View file

@ -1604,6 +1604,7 @@ AbstractWindow {
contentImageColor: down || checked ? DefaultStyle.main1_500_main : DefaultStyle.main2_500main
textSize: 14 * DefaultStyle.dp
textWeight: 400 * DefaultStyle.dp
textHAlignment: Text.AlignLeft
spacing: 5 * DefaultStyle.dp
}
popup.contentItem: ColumnLayout {