From e37332fe6bb95ec9536a4757214c3e0f7448d522 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 18 Jun 2026 20:36:28 +0200 Subject: [PATCH] add right click clear --- Drawers/Interactions.qml | 6 ++++++ Modules/Notifications/Content.qml | 2 +- Modules/Notifications/Notification.qml | 2 -- scripts/update.sh | 28 -------------------------- 4 files changed, 7 insertions(+), 31 deletions(-) delete mode 100755 scripts/update.sh diff --git a/Drawers/Interactions.qml b/Drawers/Interactions.qml index b2efe92..04af119 100644 --- a/Drawers/Interactions.qml +++ b/Drawers/Interactions.qml @@ -122,6 +122,7 @@ Item { property bool setInitialPoint: false + acceptedButtons: Qt.LeftButton | Qt.RightButton enabled: root.visibilities.isDrawing onActiveChanged: { @@ -134,6 +135,11 @@ Item { } } onPointChanged: { + if (point.pressedButtons & Qt.RightButton) { + root.drawing.clear(); + return; + } + const x = point.position.x; const y = point.position.y; const origX = point.pressPosition.x; diff --git a/Modules/Notifications/Content.qml b/Modules/Notifications/Content.qml index 5216048..1b2f747 100644 --- a/Modules/Notifications/Content.qml +++ b/Modules/Notifications/Content.qml @@ -24,7 +24,7 @@ Item { for (let i = 0; i < count; i++) height += (list.itemAtIndex(i) as NotifWrapper)?.nonAnimHeight ?? 0; - if (panels.popouts.hasCurrent && (panels.popouts.currentCenter + (panels.popouts.current?.width / 2)) > panels.notifications.x || visibilities.dashboard || visibilities.sidebar) + if (panels.popouts.hasCurrent && (panels.popouts.currentCenter + (panels.popouts.current?.width / 2)) > panels.notifications.x || visibilities.dashboard) return 0; if (visibilities.osd) { diff --git a/Modules/Notifications/Notification.qml b/Modules/Notifications/Notification.qml index af7c88e..9876288 100644 --- a/Modules/Notifications/Notification.qml +++ b/Modules/Notifications/Notification.qml @@ -97,8 +97,6 @@ CustomRect { Behavior on implicitHeight { Anim { - duration: MaterialEasing.expressiveEffectsTime - easing.bezierCurve: MaterialEasing.expressiveEffects } } diff --git a/scripts/update.sh b/scripts/update.sh deleted file mode 100755 index 3108bdb..0000000 --- a/scripts/update.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -OS="arch" -if [[ $(ls ./tmp) ]]; then - exec mkdir ./tmp -fi - -cd ./tmp - -main() { - local OPTARG OPTIND opt - while getopts "arch:nix:" opt; do - case "$opt" in - arch) OS=$OPTARG ;; - nix) OS=$OPTARG ;; - *) fatal 'bad option' ;; - esac - done - - if [[ $OS = "arch" ]]; then - exec yay -Sy - elif [[ $OS = "nix" ]]; then - exec nixos-rebuild build --flake $HOME/Gits/NixOS/#nixos - PKGS=$(exec nix store diff-closures /run/current-system ./result) - fi -} - -main "$@"