1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-14 22:42:34 +02:00
ScreenPlay/ScreenPlayUtil/qml/ColorImage.qml
2022-11-06 14:57:45 +01:00

31 lines
559 B
QML

import QtQuick
import QtQuick.Controls.Material
import Qt5Compat.GraphicalEffects
/*!
\qmltype ColorImage
\inqmlmodule Common
\inherits Image
\brief An Image whose color can be specified.
The ColorImage component extends the Image component by the color property.
*/
Image {
id: root
/*!
\qmlproperty color ColorImage::color
The color of the image.
*/
property color color: Material.iconColor
layer {
enabled: true
effect: ColorOverlay {
color: root.color
}
}
}