mirror of
https://github.com/stemoretti/BaseUI.git
synced 2025-05-25 07:10:23 -04:00
21 lines
417 B
QML
21 lines
417 B
QML
import QtQuick
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property alias icon: internal.source
|
|
property color color: undefined
|
|
|
|
Image {
|
|
id: internal
|
|
|
|
anchors.fill: parent
|
|
layer.enabled: root.color != undefined
|
|
layer.samplerName: "maskSource"
|
|
layer.effect: ShaderEffect {
|
|
property color color: root.color
|
|
fragmentShader: "shaders/icon.frag.qsb"
|
|
}
|
|
}
|
|
}
|