summaryrefslogtreecommitdiff
path: root/modules/osd/Interactions.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-17 19:46:42 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-17 19:46:42 +1000
commitc48f411bcbc34afca9cdef713ef020767bd08430 (patch)
treeaccc4ea1dda5e4e6f634f5fe215e842940b1fe87 /modules/osd/Interactions.qml
parentnotifs: fix dnd (diff)
downloadcaelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.tar.gz
caelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.tar.bz2
caelestia-shell-c48f411bcbc34afca9cdef713ef020767bd08430.zip
osd: fix anim when appear on change
Diffstat (limited to 'modules/osd/Interactions.qml')
-rw-r--r--modules/osd/Interactions.qml48
1 files changed, 0 insertions, 48 deletions
diff --git a/modules/osd/Interactions.qml b/modules/osd/Interactions.qml
deleted file mode 100644
index a58287a..0000000
--- a/modules/osd/Interactions.qml
+++ /dev/null
@@ -1,48 +0,0 @@
-import qs.services
-import qs.config
-import Quickshell
-import QtQuick
-
-Scope {
- id: root
-
- required property ShellScreen screen
- required property PersistentProperties visibilities
- required property bool hovered
- readonly property Brightness.Monitor monitor: Brightness.getMonitorForScreen(screen)
-
- function show(): void {
- root.visibilities.osd = true;
- timer.restart();
- }
-
- Connections {
- target: Audio
-
- function onMutedChanged(): void {
- root.show();
- }
-
- function onVolumeChanged(): void {
- root.show();
- }
- }
-
- Connections {
- target: root.monitor
-
- function onBrightnessChanged(): void {
- root.show();
- }
- }
-
- Timer {
- id: timer
-
- interval: Config.osd.hideDelay
- onTriggered: {
- if (!root.hovered)
- root.visibilities.osd = false;
- }
- }
-}