From 7bc7df8d1c51dc945adf77af6ace8135d649fa97 Mon Sep 17 00:00:00 2001 From: "B.Melnik" Date: Mon, 21 Jun 2021 12:36:54 +0300 Subject: [PATCH] feat(StatusIcon): Improvement of Icons --- src/StatusQ/Core/StatusIcon.qml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/StatusQ/Core/StatusIcon.qml b/src/StatusQ/Core/StatusIcon.qml index a409f316..bee2eb50 100644 --- a/src/StatusQ/Core/StatusIcon.qml +++ b/src/StatusQ/Core/StatusIcon.qml @@ -12,19 +12,20 @@ Image { sourceSize.height: height fillMode: Image.PreserveAspectFit + antialiasing: true + mipmap: true + onIconChanged: { if (icon !== "") { source = "../../assets/img/icons/" + icon + ".svg"; } } - ColorOverlay { - visible: !Qt.colorEqual(statusIcon.color, "transparent") - anchors.fill: statusIcon - source: statusIcon + layer.mipmap: true + layer.smooth: true + layer.format: ShaderEffectSource.RGBA + layer.enabled:!Qt.colorEqual(statusIcon.color, "transparent") + layer.effect: ColorOverlay { color: statusIcon.color - antialiasing: true - smooth: true } } -