mirror of
https://github.com/stemoretti/BaseUI.git
synced 2026-02-07 07:50:44 -05:00
Heavy changes
This commit is contained in:
20
qml/Icon.qml
Normal file
20
qml/Icon.qml
Normal file
@ -0,0 +1,20 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user