summaryrefslogtreecommitdiff
path: root/modules/bar
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-09 17:33:16 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-09 17:33:16 +1000
commitbf558cfe83c48b0020485ddc001adebdd93ca248 (patch)
treeb1f07860ffb625d279d20990464a7ac11e59d440 /modules/bar
parentpicker: fix clients for special ws (diff)
downloadcaelestia-shell-bf558cfe83c48b0020485ddc001adebdd93ca248.tar.gz
caelestia-shell-bf558cfe83c48b0020485ddc001adebdd93ca248.tar.bz2
caelestia-shell-bf558cfe83c48b0020485ddc001adebdd93ca248.zip
bar: better scroll actions
Also fix workspaces interaction area
Diffstat (limited to 'modules/bar')
-rw-r--r--modules/bar/Bar.qml4
-rw-r--r--modules/bar/components/ActiveWindow.qml30
2 files changed, 2 insertions, 32 deletions
diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml
index 7ed733e..22f21dd 100644
--- a/modules/bar/Bar.qml
+++ b/modules/bar/Bar.qml
@@ -97,8 +97,8 @@ Item {
CustomMouseArea {
anchors.fill: parent
- anchors.leftMargin: -Config.border.thickness
- anchors.rightMargin: -Config.border.thickness
+ anchors.leftMargin: -Math.max(Appearance.padding.smaller, Config.border.thickness)
+ anchors.rightMargin: -Math.max(Appearance.padding.smaller, Config.border.thickness)
function onWheel(event: WheelEvent): void {
const activeWs = Hyprland.activeToplevel?.workspace?.name;
diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml
index de4202d..de0f0ad 100644
--- a/modules/bar/components/ActiveWindow.qml
+++ b/modules/bar/components/ActiveWindow.qml
@@ -1,7 +1,6 @@
pragma ComponentBehavior: Bound
import qs.components
-import qs.components.controls
import qs.services
import qs.utils
import qs.config
@@ -17,35 +16,6 @@ Item {
implicitWidth: child.implicitWidth
implicitHeight: child.implicitHeight
- CustomMouseArea {
- anchors.top: parent.top
- anchors.bottom: child.top
- anchors.left: parent.left
- anchors.right: parent.right
-
- function onWheel(event: WheelEvent): void {
- if (event.angleDelta.y > 0)
- Audio.incrementVolume();
- else if (event.angleDelta.y < 0)
- Audio.decrementVolume();
- }
- }
-
- CustomMouseArea {
- anchors.top: child.bottom
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- anchors.right: parent.right
-
- function onWheel(event: WheelEvent): void {
- const monitor = root.monitor;
- if (event.angleDelta.y > 0)
- monitor.setBrightness(monitor.brightness + 0.1);
- else if (event.angleDelta.y < 0)
- monitor.setBrightness(monitor.brightness - 0.1);
- }
- }
-
Item {
id: child