1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 10:42:29 +01:00
ScreenPlay/ScreenPlayUtil/qml/ColorImage.qml
2023-02-02 15:25:26 +01:00

29 lines
557 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
}
}
}