Skip to content

Commit

Permalink
fix(GraphicalEffects): fix class name and qrc import path
Browse files Browse the repository at this point in the history
  • Loading branch information
elysia-best committed Jan 22, 2025
1 parent ebd2b93 commit 2b061c2
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/GraphicalEffects/BrightnessContrast.qml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,6 @@ Item {
anchors.fill: parent
blending: !rootItem.cached

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/brightnesscontrast.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/brightnesscontrast.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/ColorOverlay.qml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ Item {

anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/coloroverlay.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/coloroverlay.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/Colorize.qml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,6 @@ Item {

anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/colorize.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/colorize.frag.qsb"
}
}
4 changes: 2 additions & 2 deletions src/GraphicalEffects/ConicalGradient.qml
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ Gradient {

onFragmentShaderChanged: startAngleChanged()

property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/conicalgradient_nomask.frag.qsb"
property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/conicalgradient_mask.frag.qsb"
property string noMaskShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/conicalgradient_nomask.frag.qsb"
property string maskShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/conicalgradient_mask.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/Desaturate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ Item {

anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/desaturate.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/desaturate.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/Displace.qml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ Item {

anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/displace.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/displace.frag.qsb"
}
}
6 changes: 3 additions & 3 deletions src/GraphicalEffects/FastBlur.qml
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ Item {
}

/*! \internal */
property string __internalBlurVertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"
property string __internalBlurVertexShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"

/*! \internal */
property string __internalBlurFragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"
property string __internalBlurFragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"

ShaderEffect {
id: level0
Expand Down Expand Up @@ -441,6 +441,6 @@ Item {

onLodChanged: calculateWeights()

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/fastblur.frag.qsb"
}
}
6 changes: 3 additions & 3 deletions src/GraphicalEffects/FastGlow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ Item {
hideSource: visible
}

property string __internalBlurVertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"
property string __internalBlurVertexShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/fastblur_internal.vert.qsb"

property string __internalBlurFragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"
property string __internalBlurFragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/fastblur_internal.frag.qsb"

ShaderEffect {
id: level0
Expand Down Expand Up @@ -340,6 +340,6 @@ Item {

onLodChanged: calculateWeights()

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/fastglow.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/fastglow.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/GammaAdjust.qml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,6 @@ luminance = pow(original_luminance, 1.0 / gamma); // The luminance is assumed to

anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/gammaadjust.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/gammaadjust.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/HueSaturation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,6 @@ Item {

anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/huesaturation.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/huesaturation.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/LevelAdjust.qml
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,6 @@ Item {
property variant gamma: Qt.vector3d(1.0 / Math.max(rootItem.gamma.x, 0.0001), 1.0 / Math.max(rootItem.gamma.y, 0.0001), 1.0 / Math.max(rootItem.gamma.z, 0.0001))
anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/leveladjust.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/leveladjust.frag.qsb"
}
}
6 changes: 3 additions & 3 deletions src/GraphicalEffects/LinearGradient.qml
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ Item {
property real angle: Math.atan2(dx, dy)
property variant matrixData: Qt.point(Math.sin(angle), Math.cos(angle))

vertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient.vert.qsb"
vertexShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/lineargradient.vert.qsb"

fragmentShader: maskSource == undefined ? noMaskShader : maskShader

onFragmentShaderChanged: lChanged()

property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient_mask.frag.qsb"
property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/lineargradient_nomask.frag.qsb"
property string maskShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/lineargradient_mask.frag.qsb"
property string noMaskShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/lineargradient_nomask.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/OpacityMask.qml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ Item {

anchors.fill: parent

fragmentShader: invert ? "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/opacitymask_invert.frag.qsb" : "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/opacitymask.frag.qsb"
fragmentShader: invert ? "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/opacitymask_invert.frag.qsb" : "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/opacitymask.frag.qsb"
}
}
6 changes: 3 additions & 3 deletions src/GraphicalEffects/RadialGradient.qml
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,13 @@ Item {

anchors.fill: parent

vertexShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient.vert.qsb"
vertexShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/radialgradient.vert.qsb"

fragmentShader: maskSource == undefined ? noMaskShader : maskShader

onFragmentShaderChanged: horizontalRatioChanged()

property string maskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient_mask.frag.qsb"
property string noMaskShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/radialgradient_nomask.frag.qsb"
property string maskShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/radialgradient_mask.frag.qsb"
property string noMaskShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/radialgradient_nomask.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/RectangularGlow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,6 @@ Item {
property real spread: rootItem.spread / 2.0
property real cornerRadius: clampedCornerRadius()

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/rectangularglow.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/rectangularglow.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/ThresholdMask.qml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,6 @@ Item {

anchors.fill: parent

fragmentShader: "qrc:/qt-project.org/imports/QtGraphicalEffects/shaders_ng/thresholdmask.frag.qsb"
fragmentShader: "qrc:/lingmoui/kit/GraphicalEffects/LingmoUI/GraphicalEffects/shaders_ng/thresholdmask.frag.qsb"
}
}
2 changes: 1 addition & 1 deletion src/GraphicalEffects/qgfxsourceproxy_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class QGfxSourceProxy : public QQuickItem
Q_PROPERTY(Interpolation interpolation READ interpolation WRITE setInterpolation NOTIFY interpolationChanged)

Q_ENUMS(Interpolation)
QML_NAMED_ELEMENT(QGfxSourceProxy)
QML_NAMED_ELEMENT(SourceProxy)

public:
enum Interpolation
Expand Down

0 comments on commit 2b061c2

Please sign in to comment.