2019-07-13 05:39:01 -04:00
|
|
|
import QtQuick 2.12
|
2019-08-17 13:01:43 -04:00
|
|
|
import QtGraphicalEffects 1.12
|
2019-04-26 21:16:45 -04:00
|
|
|
|
|
|
|
Image {
|
2019-08-17 13:01:43 -04:00
|
|
|
id: image
|
2019-04-26 21:16:45 -04:00
|
|
|
asynchronous: true
|
|
|
|
cache: true
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2019-08-17 13:01:43 -04:00
|
|
|
|
|
|
|
property color colorize: "transparent"
|
|
|
|
|
|
|
|
layer {
|
|
|
|
enabled: ! Qt.colorEqual(colorize, "transparent")
|
|
|
|
effect: ColorOverlay {
|
|
|
|
color: image.colorize
|
|
|
|
cached: image.cache
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-26 21:16:45 -04:00
|
|
|
}
|