fix: fixxstatus button margin when there is an icon
This commit is contained in:
parent
6ce8d5ef74
commit
6f929c3665
|
@ -55,7 +55,11 @@ Button {
|
||||||
font: control.font
|
font: control.font
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
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
|
color: !enabled ? Style.current.buttonDisabledForegroundColor : control.color
|
||||||
visible: !loadingIndicator.active
|
visible: !loadingIndicator.active
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue