Add icons on left and right side of text

For this I had to implement functionality in ActionButton to be able to display the icon on either side.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-11-20 14:47:41 +01:00
parent dca286cea5
commit d42ddad606
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 25 additions and 4 deletions

View file

@ -172,6 +172,9 @@ Cura.ExpandableComponent
textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text")
iconSource: UM.Theme.icons.arrow_right
iconOnRightSide: true
onClicked: popupItem.configuration_method = "custom"
}
@ -192,6 +195,8 @@ Cura.ExpandableComponent
textColor: UM.Theme.getColor("primary")
textHoverColor: UM.Theme.getColor("text")
iconSource: UM.Theme.icons.arrow_left
onClicked: popupItem.configuration_method = "auto"
}
}