mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
24 lines
596 B
QML
24 lines
596 B
QML
import QtQuick
|
|
import Qt.labs.platform
|
|
import Quickshell
|
|
import Quickshell.Widgets
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property string source: ""
|
|
property string iconFolder: StandardPaths.standardLocations(StandardPaths.ConfigLocation)[0] + "/quickshell/assets/icons" // The folder to check first
|
|
width: 30
|
|
height: 30
|
|
|
|
IconImage {
|
|
id: iconImage
|
|
anchors.fill: parent
|
|
source: {
|
|
if (iconFolder && iconFolder + "/" + root.source) {
|
|
return iconFolder + "/" + root.source
|
|
}
|
|
return root.source
|
|
}
|
|
}
|
|
}
|