forked from Shinonome/dots-hyprland
sidebar progress
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user