From ea2a914f9f432b8ac28d10012ac67cf9e3bd71ee Mon Sep 17 00:00:00 2001 From: Sergii Lisovenko <2522054+s-lisovenko@users.noreply.github.com> Date: Sun, 7 Apr 2024 14:10:33 +0200 Subject: [PATCH] Colorize icon with Qt5Compat.GraphicalEffects instead MultiEffect from Qt6 At the moment, MultiEffect has limitations in its operation. It does not work with black images. Therefore, the most logical solution would be to use the features from Qt5 --- src/QmlControls/QGCColoredImage.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/QmlControls/QGCColoredImage.qml b/src/QmlControls/QGCColoredImage.qml index 4f94014e359..5769463f5d1 100644 --- a/src/QmlControls/QGCColoredImage.qml +++ b/src/QmlControls/QGCColoredImage.qml @@ -1,6 +1,6 @@ import QtQuick import QtQuick.Controls -import QtQuick.Effects +import Qt5Compat.GraphicalEffects import QGroundControl.Palette @@ -35,10 +35,9 @@ Item { sourceSize.height: height } - MultiEffect { - source: image - anchors.fill: image - colorizationColor: parent.color - colorization: 1.0 + ColorOverlay { + anchors.fill: image + source: image + color: parent.color } }