aboutsummaryrefslogtreecommitdiffstats
path: root/window-switcher/HotCorner.qml
diff options
context:
space:
mode:
Diffstat (limited to 'window-switcher/HotCorner.qml')
-rw-r--r--window-switcher/HotCorner.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/window-switcher/HotCorner.qml b/window-switcher/HotCorner.qml
index cb7d863..eebcf05 100644
--- a/window-switcher/HotCorner.qml
+++ b/window-switcher/HotCorner.qml
@@ -87,15 +87,17 @@ PanelWindow {
}
}
- // A quarter circle centred on the corner, growing with the dwell.
- Rectangle {
- readonly property real r: corner.width * corner.progress
+ // A glow centred on the corner, growing with the dwell. The disc is
+ // smaller than the window so the fade fits inside it.
+ Glow {
+ readonly property real r: corner.width * 0.5 * corner.progress
x: corner.width - r
y: -r
width: 2 * r
height: 2 * r
radius: r
- color: Theme.accent
- opacity: 0.6 * corner.progress
+ blur: r
+ on: true
+ opacity: 0.8 * corner.progress
}
}