feat(StatusIcon): Improvement of Icons

This commit is contained in:
B.Melnik 2021-06-21 12:36:54 +03:00 committed by Pascal Precht
parent 8a684a7d8a
commit 7bc7df8d1c
1 changed files with 8 additions and 7 deletions

View File

@ -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
}
}