summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/ActiveIndicator.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-03 15:05:39 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-03 15:05:39 +1000
commitd01194d1fcc4f4eedb49b320613634e7a46722bf (patch)
treef1bb8d7fade7e93bd9b097f5f1e5eebde92d7eb1 /modules/bar/components/workspaces/ActiveIndicator.qml
parentfeat: launcher actions (diff)
downloadcaelestia-shell-d01194d1fcc4f4eedb49b320613634e7a46722bf.tar.gz
caelestia-shell-d01194d1fcc4f4eedb49b320613634e7a46722bf.tar.bz2
caelestia-shell-d01194d1fcc4f4eedb49b320613634e7a46722bf.zip
feat: use multieffect instead of qt5compat
Also use loader for tray icon recolouring
Diffstat (limited to 'modules/bar/components/workspaces/ActiveIndicator.qml')
-rw-r--r--modules/bar/components/workspaces/ActiveIndicator.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/bar/components/workspaces/ActiveIndicator.qml b/modules/bar/components/workspaces/ActiveIndicator.qml
index 54f10fa..196b9e5 100644
--- a/modules/bar/components/workspaces/ActiveIndicator.qml
+++ b/modules/bar/components/workspaces/ActiveIndicator.qml
@@ -2,7 +2,7 @@ import "root:/widgets"
import "root:/services"
import "root:/config"
import QtQuick
-import Qt5Compat.GraphicalEffects
+import QtQuick.Effects
Rectangle {
id: root
@@ -44,9 +44,12 @@ Rectangle {
}
}
- OpacityMask {
+ MultiEffect {
source: base
maskSource: root.mask
+ maskEnabled: true
+ maskSpreadAtMin: 1
+ maskThresholdMin: 0.4
x: root.vertical ? 0 : -parent.offset
y: root.vertical ? -parent.offset : 0