diff --git a/src/TaoQuick/Qml/Basic/CusColorOverlay.qml b/src/TaoQuick/Qml/Basic/CusColorOverlay.qml index 8b12d38f..17467f2e 100644 --- a/src/TaoQuick/Qml/Basic/CusColorOverlay.qml +++ b/src/TaoQuick/Qml/Basic/CusColorOverlay.qml @@ -9,5 +9,5 @@ ShaderEffect { id: cusColorOverlay property Image source property color imageColor - fragmentShader: CusConfig.importPath + "Basic/cusColorOverlay.frag.qsb" + fragmentShader: CusConfig.shaderPath + "cusColorOverlay.frag.qsb" } diff --git a/src/TaoQuick/Qml/CusConfig.qml b/src/TaoQuick/Qml/CusConfig.qml index 96fa2ddb..da62f5cc 100644 --- a/src/TaoQuick/Qml/CusConfig.qml +++ b/src/TaoQuick/Qml/CusConfig.qml @@ -21,9 +21,11 @@ QtObject { property int tipTextPixel: 12 property string imagePathPrefix: "file:///./../Images/" + property string shaderPath: "file:///./Basic/" Component.onCompleted: { if (typeof (taoQuickImportPath) != "undefined" && taoQuickImportPath !== null && taoQuickImportPath.length > 0) { imagePathPrefix = taoQuickImportPath + "TaoQuick/Images/" + shaderPath = taoQuickImportPath + "TaoQuick/Qml/Basic/" } currentTheme = 0 }