summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
Diffstat (limited to 'bar')
-rw-r--r--bar/Network.qml8
-rw-r--r--bar/Power.qml15
-rw-r--r--bar/TimeDate.qml8
-rw-r--r--bar/Workspace.qml5
4 files changed, 16 insertions, 20 deletions
diff --git a/bar/Network.qml b/bar/Network.qml
index fbd1d91..a343977 100644
--- a/bar/Network.qml
+++ b/bar/Network.qml
@@ -111,12 +111,10 @@ Item {
}
}
}
-
- HoverHandler {
+ MouseArea {
+ anchors.fill: container
cursorShape: Qt.PointingHandCursor
- }
- TapHandler {
- onTapped: {
+ onClicked: {
root.isCollapsed = !root.isCollapsed;
}
}
diff --git a/bar/Power.qml b/bar/Power.qml
index 02da1f1..a29bc4a 100644
--- a/bar/Power.qml
+++ b/bar/Power.qml
@@ -110,13 +110,14 @@ Item {
}
}
- HoverHandler {
- onHoveredChanged: {
- if (!hovered) {
- root.collapsed = true;
- } else {
- root.collapsed = false;
- }
+ MouseArea {
+ anchors.fill: parent
+ hoverEnabled: true
+ onEntered: {
+ root.collapsed = false;
+ }
+ onExited: {
+ root.collapsed = true;
}
}
}
diff --git a/bar/TimeDate.qml b/bar/TimeDate.qml
index 68a5a52..2716e6d 100644
--- a/bar/TimeDate.qml
+++ b/bar/TimeDate.qml
@@ -123,12 +123,10 @@ Item {
}
}
}
-
- HoverHandler {
+ MouseArea {
+ anchors.fill: parent
cursorShape: Qt.PointingHandCursor
- }
- TapHandler {
- onTapped: {
+ onPressed: {
root.isAlt = !root.isAlt;
}
}
diff --git a/bar/Workspace.qml b/bar/Workspace.qml
index 1366c2d..3f0709a 100644
--- a/bar/Workspace.qml
+++ b/bar/Workspace.qml
@@ -236,11 +236,10 @@ Item {
else
Hyprland.dispatch(`hl.dsp.focus({ workspace = '1' })`);
} else if (event.angleDelta.y > 0) {
- if (root.activeIndex + 1 > 1) {
+ if (root.activeIndex + 1 > 1)
Hyprland.dispatch(`hl.dsp.focus({ workspace = '1' })`);
- } else if (Bar.wss > 1) {
+ else if (Bar.wss > 1)
Hyprland.dispatch(`hl.dsp.focus({ workspace = '${Bar.wss}' })`);
- }
}
}
}