mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-06 09:17:07 +02:00
31 lines
559 B
QML
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
|
|
}
|
|
}
|
|
}
|