From bfd05ca72811301ee484e502fd26038e389d509a Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Thu, 26 Feb 2015 15:03:32 -0800 Subject: [PATCH] Use new QGCColoredImage control --- src/QmlControls/SubMenuButton.qml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/QmlControls/SubMenuButton.qml b/src/QmlControls/SubMenuButton.qml index 93d24ed32..5282d3d6a 100644 --- a/src/QmlControls/SubMenuButton.qml +++ b/src/QmlControls/SubMenuButton.qml @@ -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 } } -- 2.22.0