mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-08 08:19:26 -05:00
18 lines
501 B
QML
18 lines
501 B
QML
import QtQuick
|
|
import qs.modules.common as C
|
|
|
|
FallbackLoader {
|
|
id: root
|
|
|
|
required property string componentName
|
|
property string context // Path for the builtin component
|
|
|
|
readonly property string componentNameWithExt: componentName.endsWith(".qml") ? componentName : `${componentName}.qml`
|
|
|
|
source: `${C.Directories.userComponents}/${componentNameWithExt}`
|
|
fallbacks: [
|
|
...(context ? [ `${context}/${componentNameWithExt}` ] : []),
|
|
componentNameWithExt
|
|
]
|
|
}
|