aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/overview/common/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'config/quickshell/overview/common/widgets')
-rw-r--r--config/quickshell/overview/common/widgets/RectangularShadow.qml28
-rw-r--r--config/quickshell/overview/common/widgets/StyledRectangularShadow.qml1
-rw-r--r--config/quickshell/overview/common/widgets/qmldir1
3 files changed, 1 insertions, 29 deletions
diff --git a/config/quickshell/overview/common/widgets/RectangularShadow.qml b/config/quickshell/overview/common/widgets/RectangularShadow.qml
deleted file mode 100644
index 2289d4c0..00000000
--- a/config/quickshell/overview/common/widgets/RectangularShadow.qml
+++ /dev/null
@@ -1,28 +0,0 @@
-import QtQuick
-import QtQuick.Effects
-
-Item {
- id: root
-
- property var target: parent
- property real radius: 0
- property real blur: 0
- property vector2d offset: Qt.vector2d(0.0, 0.0)
- property real spread: 0
- property color color: "black"
- property bool cached: false
-
- anchors.fill: target
- visible: target !== null
-
- MultiEffect {
- anchors.fill: target
- source: target
- shadowEnabled: true
- shadowColor: root.color
- shadowBlur: root.blur
- shadowHorizontalOffset: root.offset.x
- shadowVerticalOffset: root.offset.y
- shadowOpacity: 1.0
- }
-}
diff --git a/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml b/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml
index dba2159f..ccdff1ac 100644
--- a/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml
+++ b/config/quickshell/overview/common/widgets/StyledRectangularShadow.qml
@@ -3,6 +3,7 @@ import QtQuick.Effects
import ".."
RectangularShadow {
+ required property var target
anchors.fill: target
radius: 20
blur: 0.9 * Appearance.sizes.elevationMargin
diff --git a/config/quickshell/overview/common/widgets/qmldir b/config/quickshell/overview/common/widgets/qmldir
index c974f193..0efe1360 100644
--- a/config/quickshell/overview/common/widgets/qmldir
+++ b/config/quickshell/overview/common/widgets/qmldir
@@ -1,5 +1,4 @@
StyledText 1.0 StyledText.qml
StyledRectangularShadow 1.0 StyledRectangularShadow.qml
-RectangularShadow 1.0 RectangularShadow.qml
StyledToolTip 1.0 StyledToolTip.qml
StyledToolTipContent 1.0 StyledToolTipContent.qml
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage