1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00
ScreenPlay/ScreenPlayUtil/qml/ColorImage.qml

29 lines
557 B
QML
Raw Normal View History

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