From 7222e072af0609a6d7f0ba3ef131204f49e3e591 Mon Sep 17 00:00:00 2001 From: ArijanJ <56356662+ArijanJ@users.noreply.github.com> Date: Fri, 24 Jul 2026 21:19:47 +0200 Subject: [PATCH] osd: click to hide some osds (#2927) --- quickshell/Modules/OSD/BrightnessOSD.qml | 10 ++++++++++ quickshell/Modules/OSD/MediaVolumeOSD.qml | 10 ++++++++++ quickshell/Modules/OSD/MicVolumeOSD.qml | 10 ++++++++++ quickshell/Modules/OSD/VolumeOSD.qml | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/quickshell/Modules/OSD/BrightnessOSD.qml b/quickshell/Modules/OSD/BrightnessOSD.qml index 5ac62c973..0cf895956 100644 --- a/quickshell/Modules/OSD/BrightnessOSD.qml +++ b/quickshell/Modules/OSD/BrightnessOSD.qml @@ -42,6 +42,11 @@ DankOSD { width: parent.width - Theme.spacingS * 2 height: 40 + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize @@ -125,6 +130,11 @@ DankOSD { anchors.fill: parent property int gap: Theme.spacingS + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize diff --git a/quickshell/Modules/OSD/MediaVolumeOSD.qml b/quickshell/Modules/OSD/MediaVolumeOSD.qml index a2e272d07..c515f69d3 100644 --- a/quickshell/Modules/OSD/MediaVolumeOSD.qml +++ b/quickshell/Modules/OSD/MediaVolumeOSD.qml @@ -81,6 +81,11 @@ DankOSD { width: parent.width - Theme.spacingS * 2 height: 40 + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize @@ -147,6 +152,11 @@ DankOSD { anchors.fill: parent property int gap: Theme.spacingS + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize diff --git a/quickshell/Modules/OSD/MicVolumeOSD.qml b/quickshell/Modules/OSD/MicVolumeOSD.qml index 8939826a2..5064b6d7a 100644 --- a/quickshell/Modules/OSD/MicVolumeOSD.qml +++ b/quickshell/Modules/OSD/MicVolumeOSD.qml @@ -65,6 +65,11 @@ DankOSD { width: parent.width - Theme.spacingS * 2 height: 40 + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize @@ -137,6 +142,11 @@ DankOSD { anchors.fill: parent property int gap: Theme.spacingS + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize diff --git a/quickshell/Modules/OSD/VolumeOSD.qml b/quickshell/Modules/OSD/VolumeOSD.qml index 9504f3b5b..5a71917b3 100644 --- a/quickshell/Modules/OSD/VolumeOSD.qml +++ b/quickshell/Modules/OSD/VolumeOSD.qml @@ -60,6 +60,11 @@ DankOSD { width: parent.width - Theme.spacingS * 2 height: 40 + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize @@ -132,6 +137,11 @@ DankOSD { anchors.fill: parent property int gap: Theme.spacingS + MouseArea { + anchors.fill: parent + onClicked: root.hide() + } + Rectangle { width: Theme.iconSize height: Theme.iconSize