Skip to content

Commit 74dedae

Browse files
committed
fix: revert problematic content clipping to background
Removed it for now as it causes a load of rendering issues refs: 7debc85 #204
1 parent 07cfae3 commit 74dedae

File tree

4 files changed

+0
-85
lines changed

4 files changed

+0
-85
lines changed

package/contents/ui/components/MaskEffect.qml

-10
This file was deleted.

package/contents/ui/main.qml

-56
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import org.kde.plasma.core as PlasmaCore
1010
import org.kde.plasma.plasmoid
1111
import QtQuick.Effects
1212
import Qt5Compat.GraphicalEffects
13-
import "components" as Components
1413

1514
import "code/utils.js" as Utils
1615
import "code/globals.js" as Globals
@@ -1122,61 +1121,6 @@ PlasmoidItem {
11221121
position = Utils.getGlobalPosition(borderRec, panelElement);
11231122
panelColorizer.updatePanelMask(maskIndex, borderRec, rect.corners.topLeftRadius, rect.corners.topRightRadius, rect.corners.bottomLeftRadius, rect.corners.bottomRightRadius, Qt.point(rect.positionX - moveX, rect.positionY - moveY), 5, visible && blurBehind);
11241123
}
1125-
1126-
Kirigami.ShadowedRectangle {
1127-
id: backgroundMaskSource
1128-
anchors.fill: parent
1129-
corners {
1130-
topLeftRadius: topLeftRadius
1131-
topRightRadius: topRightRadius
1132-
bottomLeftRadius: bottomLeftRadius
1133-
bottomRightRadius: bottomRightRadius
1134-
}
1135-
}
1136-
1137-
Components.MaskEffect {
1138-
id: backgroundMask
1139-
anchors.fill: parent
1140-
source: targetShaderSource
1141-
mask: maskShaderSource
1142-
enabled: rect.isWidget && !panelBgItem.bgEnabled || true
1143-
sourceOpacity: 1
1144-
}
1145-
1146-
Components.MaskEffect {
1147-
id: dropShadowMask
1148-
anchors.fill: parent
1149-
source: shadowShaderSource
1150-
mask: maskShaderSource
1151-
enabled: rect.isWidget && !panelBgItem.bgEnabled || true
1152-
sourceOpacity: 1
1153-
}
1154-
1155-
ShaderEffectSource {
1156-
id: targetShaderSource
1157-
sourceItem: {
1158-
if (rect.isPanel && panelBgItem.bgEnabled) {
1159-
return rect.target.visibleChildren[0];
1160-
}
1161-
return rect.target?.applet ?? null;
1162-
}
1163-
live: true
1164-
hideSource: true
1165-
}
1166-
1167-
ShaderEffectSource {
1168-
id: shadowShaderSource
1169-
sourceItem: dropShadow
1170-
live: true
1171-
hideSource: true
1172-
}
1173-
1174-
ShaderEffectSource {
1175-
id: maskShaderSource
1176-
sourceItem: backgroundMaskSource
1177-
hideSource: true
1178-
live: true
1179-
}
11801124
}
11811125

11821126
// Search the actual gridLayout of the panel
-1.39 KB
Binary file not shown.

shaders/badge.frag

-19
This file was deleted.

0 commit comments

Comments
 (0)