summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-09-08 20:00:22 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-09-08 20:00:22 +0200
commit8a551339cbfaf106ac7d6f1ca5230196be539167 (patch)
tree20dd3cb9f12dd94fa22fcd2d866c3cf586f8931a /accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml
parent14d4d05acc235ab7033316d16530783c90e95faa (diff)
downloadnixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar
nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.gz
nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.bz2
nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.tar.xz
nixos-8a551339cbfaf106ac7d6f1ca5230196be539167.zip
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml b/accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml
new file mode 100644
index 00000000..387dcc8b
--- /dev/null
+++ b/accounts/gkleen@sif/shell/quickshell/MaterialDesignIcon.qml
@@ -0,0 +1,24 @@
1import QtQuick
2import QtQuick.Effects
3
4Item {
5 id: icon
6
7 required property string icon
8 property color color: "white"
9
10 Image {
11 id: sourceImage
12 source: "file://" + @mdi@ + "/svg/" + icon.icon + ".svg"
13 anchors.fill: parent
14
15 layer.enabled: true
16 layer.effect: MultiEffect {
17 id: effect
18
19 brightness: 1
20 colorization: 1
21 colorizationColor: icon.color
22 }
23 }
24}