mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
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 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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue