summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml
blob: 387dcc8b027fcba65d085addf1a89b761dfda4a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import QtQuick
import QtQuick.Effects

Item {
  id: icon

  required property string icon
  property color color: "white"

  Image {
    id: sourceImage
    source: "file://" + @mdi@ + "/svg/" + icon.icon + ".svg"
    anchors.fill: parent

    layer.enabled: true
    layer.effect: MultiEffect {
      id: effect

      brightness: 1
      colorization: 1
      colorizationColor: icon.color
    }
  }
}