Skip to content

Commit

Permalink
update shaderPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed May 17, 2023
1 parent 4dca5d7 commit d2acb5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaoQuick/Qml/Basic/CusColorOverlay.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 2 additions & 0 deletions src/TaoQuick/Qml/CusConfig.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d2acb5c

Please sign in to comment.