fix: fixxstatus button margin when there is an icon

This commit is contained in:
Jonathan Rainville 2020-10-21 14:47:42 -04:00 committed by Iuri Matias
parent 6ce8d5ef74
commit 6f929c3665
1 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,11 @@ Button {
font: control.font
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
anchors.fill: parent
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: iconLoader.active ? undefined : parent.right
anchors.left: iconLoader.active ? iconLoader.right : parent.left
anchors.leftMargin: iconLoader.active ? Style.current.smallPadding : 0
color: !enabled ? Style.current.buttonDisabledForegroundColor : control.color
visible: !loadingIndicator.active
}