From ef0b4983f923e6f7f3802ab5227037e5881f2aa9 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 7 Apr 2024 09:34:26 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"Colorize=20icon=20with=20Qt5Compat.Gr?= =?UTF-8?q?aphicalEffects=20instead=20MultiEffect=20fro=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ea2a914f9f432b8ac28d10012ac67cf9e3bd71ee. --- src/QmlControls/QGCColoredImage.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/QmlControls/QGCColoredImage.qml b/src/QmlControls/QGCColoredImage.qml index 5769463f5d1..4f94014e359 100644 --- a/src/QmlControls/QGCColoredImage.qml +++ b/src/QmlControls/QGCColoredImage.qml @@ -1,6 +1,6 @@ import QtQuick import QtQuick.Controls -import Qt5Compat.GraphicalEffects +import QtQuick.Effects import QGroundControl.Palette @@ -35,9 +35,10 @@ Item { sourceSize.height: height } - ColorOverlay { - anchors.fill: image - source: image - color: parent.color + MultiEffect { + source: image + anchors.fill: image + colorizationColor: parent.color + colorization: 1.0 } }