quickshell-toki-night/custom/ColoredIcon.qml

29 lines
725 B
QML

pragma ComponentBehavior: Bound
import Quickshell.Widgets
import QtQuick
IconImage {
id: root
required property color color
property color dominantColor
asynchronous: true
/* layer.enabled: true */
/* layer.effect: Colouriser { */
/* sourceColor: root.dominantColour */
/* colorizationColor: root.colour */
/* } */
/* layer.onEnabledChanged: { */
/* if (layer.enabled && status === Image.Ready) */
/* CUtils.getDominantColour(this, c => dominantColour = c); */
/* } */
/* onStatusChanged: { */
/* if (layer.enabled && status === Image.Ready) */
/* CUtils.getDominantColour(this, c => dominantColour = c); */
/* } */
}