feat(StatusIcon): Improvement of Icons
This commit is contained in:
parent
11e6429068
commit
977f36ceca
|
@ -12,19 +12,20 @@ Image {
|
||||||
sourceSize.height: height
|
sourceSize.height: height
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
||||||
|
antialiasing: true
|
||||||
|
mipmap: true
|
||||||
|
|
||||||
onIconChanged: {
|
onIconChanged: {
|
||||||
if (icon !== "") {
|
if (icon !== "") {
|
||||||
source = "../../assets/img/icons/" + icon + ".svg";
|
source = "../../assets/img/icons/" + icon + ".svg";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColorOverlay {
|
layer.mipmap: true
|
||||||
visible: !Qt.colorEqual(statusIcon.color, "transparent")
|
layer.smooth: true
|
||||||
anchors.fill: statusIcon
|
layer.format: ShaderEffectSource.RGBA
|
||||||
source: statusIcon
|
layer.enabled:!Qt.colorEqual(statusIcon.color, "transparent")
|
||||||
|
layer.effect: ColorOverlay {
|
||||||
color: statusIcon.color
|
color: statusIcon.color
|
||||||
antialiasing: true
|
|
||||||
smooth: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue