Commit bfd05ca7 authored by Don Gagne's avatar Don Gagne

Use new QGCColoredImage control

parent 3e8db2d0
......@@ -65,19 +65,14 @@ Button {
color: __qgcPal.windowShade
Image {
id: buttonImage
QGCColoredImage {
source: control.imageResource
sourceSize: Qt.size(parent.width - 20, parent.height - 20)
fillMode: Image.PreserveAspectFit
width: parent.width - 20
height: parent.height - 20
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
smooth: true
visible: false
}
ColorOverlay {
anchors.fill: buttonImage
source: buttonImage
color: __showHighlight ? __qgcPal.buttonHighlight : __qgcPal.button
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment