From d2acb5ce063a380b9314cc1e8bbd0064285f798e Mon Sep 17 00:00:00 2001 From: jared Date: Wed, 17 May 2023 21:10:13 +0800 Subject: [PATCH] update shaderPath --- src/TaoQuick/Qml/Basic/CusColorOverlay.qml | 2 +- src/TaoQuick/Qml/CusConfig.qml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 }