fix button alignment
This commit is contained in:
parent
9cf975518f
commit
c1be71191a
2 changed files with 3 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ Control.Button {
|
||||||
property bool inversedColors: false
|
property bool inversedColors: false
|
||||||
property int textSize: 18 * DefaultStyle.dp
|
property int textSize: 18 * DefaultStyle.dp
|
||||||
property int textWeight: 600 * DefaultStyle.dp
|
property int textWeight: 600 * DefaultStyle.dp
|
||||||
|
property var textHAlignment: Text.AlignHCenter
|
||||||
property int radius: 48 * DefaultStyle.dp
|
property int radius: 48 * DefaultStyle.dp
|
||||||
property color textColor: DefaultStyle.grey_0
|
property color textColor: DefaultStyle.grey_0
|
||||||
property bool underline: activeFocus || containsMouse
|
property bool underline: activeFocus || containsMouse
|
||||||
|
|
@ -78,7 +79,7 @@ Control.Button {
|
||||||
}
|
}
|
||||||
|
|
||||||
component ButtonText: Text {
|
component ButtonText: Text {
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: mainItem.textHAlignment
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
text: mainItem.text
|
text: mainItem.text
|
||||||
|
|
|
||||||
|
|
@ -1604,6 +1604,7 @@ AbstractWindow {
|
||||||
contentImageColor: down || checked ? DefaultStyle.main1_500_main : DefaultStyle.main2_500main
|
contentImageColor: down || checked ? DefaultStyle.main1_500_main : DefaultStyle.main2_500main
|
||||||
textSize: 14 * DefaultStyle.dp
|
textSize: 14 * DefaultStyle.dp
|
||||||
textWeight: 400 * DefaultStyle.dp
|
textWeight: 400 * DefaultStyle.dp
|
||||||
|
textHAlignment: Text.AlignLeft
|
||||||
spacing: 5 * DefaultStyle.dp
|
spacing: 5 * DefaultStyle.dp
|
||||||
}
|
}
|
||||||
popup.contentItem: ColumnLayout {
|
popup.contentItem: ColumnLayout {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue