add right click clear
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 10s
Python / lint-format (pull_request) Successful in 18s
Python / test (pull_request) Successful in 28s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m14s

This commit is contained in:
2026-06-18 20:36:28 +02:00
parent c102d0e38f
commit e37332fe6b
4 changed files with 7 additions and 31 deletions
+6
View File
@@ -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;
+1 -1
View File
@@ -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) {
-2
View File
@@ -97,8 +97,6 @@ CustomRect {
Behavior on implicitHeight {
Anim {
duration: MaterialEasing.expressiveEffectsTime
easing.bezierCurve: MaterialEasing.expressiveEffects
}
}
-28
View File
@@ -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 "$@"